shaico111 commited on
Commit
57d81f2
·
verified ·
1 Parent(s): 90638b1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -86
README.md CHANGED
@@ -1,92 +1,23 @@
1
- # CS26 — Computer-Science Dataset + Portal
 
 
 
 
 
 
 
 
 
 
2
 
3
- This repo contains:
4
 
5
- - **A Hugging Face Dataset**: `CS26/Computer-Science`
6
- - **A Hugging Face Space (portal)**: `CS26/cs26-portal` (Gradio)
7
 
8
- The portal is live at:
9
 
10
- - Direct app URL: `https://cs26-cs26-portal.hf.space/`
11
- - Space page: `https://huggingface.co/spaces/CS26/cs26-portal`
12
 
13
- ## Authentication (no tokens in repos)
14
-
15
- Do **not** hardcode any `hf_...` tokens in code or commit them to git.
16
-
17
- Use the Hugging Face CLI to store your token **locally**:
18
-
19
- ```powershell
20
- hf auth login --force
21
- hf auth whoami
22
- ```
23
-
24
- This stores credentials in your user profile cache and lets `huggingface_hub` authenticate automatically.
25
-
26
- ## Portal (Space) — `cs26-portal/app.py`
27
-
28
- Features:
29
-
30
- - **RTL + Hebrew UI** (including mixed Hebrew / Latin in search headings)
31
- - Folder navigation with breadcrumbs
32
- - **Stateful refresh and deep links**: current folder is stored in the **`?path=`** query string (URL-encoded), with **`#`** kept in sync for refresh-friendly navigation, plus a **`localStorage`** copy for resilience
33
- - Search within current folder subtree
34
- - File actions on click:
35
- - **PDF**: downloads immediately
36
- - **ZIP/archives**: download immediately
37
- - **Office (doc/docx/ppt/pptx)**: opens OfficeApps viewer in a **new tab**, and shows a preview pane with “הורדה” + “תצוגה (Office)”
38
- - **Images**: in-page preview + download link
39
- - **Text/code (txt/c/...)**: in-page preview + download link
40
- - **Prepare Folder ZIP**: builds a ZIP from the dataset via `snapshot_download` / temp zip; status and errors are shown in a **status** markdown area next to the download widget
41
- - **Direct Hugging Face downloads**: filenames with Hebrew (or other non-ASCII) may still appear percent-encoded in some browsers when downloading straight from `huggingface.co` URLs; the app uses best-effort `<a download>` where applicable
42
-
43
- ### Deploy the Space
44
-
45
- From repo root:
46
-
47
- ```powershell
48
- python .\upload_space.py
49
- ```
50
-
51
- ### Troubleshooting
52
-
53
- - **Search shows nothing**: search is scoped to the **current folder subtree**; navigate into a year or topic folder first, or clear the search box and use **רענון** after changing folders.
54
- - **ZIP errors or long waits**: large folders download many files from Hugging Face first; watch the status markdown under the ZIP button for progress or a Python traceback if something fails.
55
- - **Blank preview for images**: raster previews are embedded as data URIs when needed; if something still fails, use the dataset **resolve** link from the preview panel.
56
-
57
- ## Dataset uploader — `upload_to_hf.py`
58
-
59
- Uploads the local folder to the dataset repo **in batches of 10 files** with retry/resume.
60
-
61
- It excludes:
62
-
63
- - `.git/**`
64
- - `cs26-portal/**`
65
- - `upload_to_hf.py`, `upload_space.py`
66
-
67
- Run:
68
-
69
- ```powershell
70
- python .\upload_to_hf.py
71
- ```
72
-
73
- Optional environment variables:
74
-
75
- - `HF_REPO_ID` (default `CS26/Computer-Science`)
76
- - `HF_LOCAL_FOLDER` (default `c:\GitRepos\Computer-Science`)
77
- - `HF_BATCH_SIZE` (default `10`)
78
- - `HF_RETRY_SLEEP_SECONDS` (default `5`)
79
-
80
- ## Rollback safety
81
-
82
- Local repo has:
83
-
84
- - tag: `backup-before-portal-fixes`
85
- - branch: `backup/current-state`
86
-
87
- Space repo has:
88
-
89
- - tag: `backup-before-portal-fixes`
90
- - branch: `backup/current-state`
91
- - tag: `latest` pointing at current `main` HEAD
92
 
 
 
1
+ ---
2
+ language:
3
+ - he
4
+ - en
5
+ license: mit
6
+ tags:
7
+ - education
8
+ - computer-science
9
+ - hit
10
+ pretty_name: CS26 Computer Science Dataset
11
+ ---
12
 
13
+ # מאגר הנתונים CS26 — מדעי המחשב
14
 
15
+ מאגר זה משמש לאחסון מרכזי של נתוני לימוד ומשאבים אקדמיים עבור פרויקט מדעי המחשב. המידע המצוי כאן מונגש בצורה נוחה באמצעות פורטל גישה נפרד המאפשר ניווט ויזואלי וחיפוש יעיל בתוך התיקיות השונות.
 
16
 
17
+ ## קישורים וגישה
18
 
19
+ ניתן להשתמש בפורטל בכתובת [https://cs26-cs26-portal.hf.space/](https://cs26-cs26-portal.hf.space/) או לבקר בדף ה-Space בכתובת [https://huggingface.co/spaces/CS26/cs26-portal](https://huggingface.co/spaces/CS26/cs26-portal).
 
20
 
21
+ ## תנאי שימוש וזכויות יוצרים
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
+ כל חומרי הלימוד והתכנים המופיעים במאגר זה פתוחים וחופשיים לשימוש לצורכי למידה בלבד. ניתן לקחת את החומרים ולהשתמש בהם בכל מקום ובכל דרך לטובת לימודים אקדמיים ועצמאיים. חל איסור מוחלט על שימוש מסחרי בחומרים אלו מאחר והם אינם בבעלותי הפרטית. השימוש בתכנים המפורסמים כאן נעשה בכפוף לאישור בעלי התוכן המקוריים בלבד וכל המשתמש בהם עושה זאת על דעתו ובאחריותו.