Spaces:
Sleeping
Sleeping
Commit
·
edd4636
1
Parent(s):
78ce6ab
update google drive link for new data folder
Browse files- Dockerfile +3 -3
- cache_model.py +1 -1
Dockerfile
CHANGED
|
@@ -35,9 +35,9 @@ ENV HOST=0.0.0.0
|
|
| 35 |
EXPOSE 5001
|
| 36 |
|
| 37 |
# Download data from Google Drive
|
| 38 |
-
RUN gdown
|
| 39 |
-
&& unzip
|
| 40 |
-
&& rm
|
| 41 |
# Download Sentence Transformers model
|
| 42 |
&& python3 cache_model.py
|
| 43 |
|
|
|
|
| 35 |
EXPOSE 5001
|
| 36 |
|
| 37 |
# Download data from Google Drive
|
| 38 |
+
RUN gdown 1js0HAwBpEcoRdT9nkGY0Mc5Falkpsonl \
|
| 39 |
+
&& unzip data_24_01.zip \
|
| 40 |
+
&& rm data_24_01.zip \
|
| 41 |
# Download Sentence Transformers model
|
| 42 |
&& python3 cache_model.py
|
| 43 |
|
cache_model.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
""""
|
| 2 |
-
|
| 3 |
in the image, so the download doesn't have to run when app starts.
|
| 4 |
"""
|
| 5 |
|
|
|
|
| 1 |
""""
|
| 2 |
+
Intended for use by Dockerfile; downloads pytorch model and caches it
|
| 3 |
in the image, so the download doesn't have to run when app starts.
|
| 4 |
"""
|
| 5 |
|