Spaces:
Sleeping
Sleeping
Commit
·
d174ad1
1
Parent(s):
71635d8
- Dockerfile +4 -1
- app.py +4 -4
Dockerfile
CHANGED
@@ -63,7 +63,10 @@ RUN python3 -m pip install gradio
|
|
63 |
RUN python3 -m pip install huggingface_hub
|
64 |
RUN python3 -m pip install hdbscan
|
65 |
|
66 |
-
|
|
|
|
|
|
|
67 |
# remove pip cache
|
68 |
RUN python3 -m pip cache purge
|
69 |
|
|
|
63 |
RUN python3 -m pip install huggingface_hub
|
64 |
RUN python3 -m pip install hdbscan
|
65 |
|
66 |
+
RUN python3 -c "\
|
67 |
+
from huggingface_hub import snapshot_download; \
|
68 |
+
snapshot_download(repo_id='gregorkrzmanc/jetclustering', local_dir='models/'); \
|
69 |
+
snapshot_download(repo_id='gregorkrzmanc/jetclustering_demo', local_dir='demo_datasets/', repo_type='dataset')"
|
70 |
# remove pip cache
|
71 |
RUN python3 -m pip cache purge
|
72 |
|
app.py
CHANGED
@@ -23,10 +23,10 @@ def prefill_event(subdataset, event_idx):
|
|
23 |
return particles_data, quarks_data
|
24 |
|
25 |
|
26 |
-
from huggingface_hub import snapshot_download
|
27 |
-
|
28 |
-
snapshot_download(repo_id="gregorkrzmanc/jetclustering", local_dir="src/models/")
|
29 |
-
snapshot_download(repo_id="gregorkrzmanc/jetclustering_demo", local_dir="demo_datasets/", repo_type="dataset")
|
30 |
|
31 |
# === Interface layout ===
|
32 |
def gradio_ui():
|
|
|
23 |
return particles_data, quarks_data
|
24 |
|
25 |
|
26 |
+
#from huggingface_hub import snapshot_download#
|
27 |
+
#
|
28 |
+
#snapshot_download(repo_id="gregorkrzmanc/jetclustering", local_dir="src/models/")
|
29 |
+
#snapshot_download(repo_id="gregorkrzmanc/jetclustering_demo", local_dir="demo_datasets/", repo_type="dataset")
|
30 |
|
31 |
# === Interface layout ===
|
32 |
def gradio_ui():
|