Spaces:
Build error
Build error
Gosse Minnema
commited on
Commit
•
1afd3e6
1
Parent(s):
bc66f85
Update sociofillmore-data paths
Browse files- Dockerfile +0 -4
- docker_commands.sh +1 -2
Dockerfile
CHANGED
@@ -2,14 +2,10 @@ FROM python:3.9
|
|
2 |
WORKDIR /app
|
3 |
ADD . /app
|
4 |
RUN mkdir /nltk_data
|
5 |
-
RUN mkdir /output
|
6 |
-
RUN mkdir /data
|
7 |
RUN mkdir /.allennlp
|
8 |
RUN mkdir /.cache
|
9 |
RUN mkdir /.local
|
10 |
RUN chmod -R 777 /nltk_data
|
11 |
-
RUN chmod -R 777 /output
|
12 |
-
RUN chmod -R 777 /data
|
13 |
RUN chmod -R 777 /.allennlp
|
14 |
RUN chmod -R 777 /.cache
|
15 |
RUN chmod -R 777 /.local
|
|
|
2 |
WORKDIR /app
|
3 |
ADD . /app
|
4 |
RUN mkdir /nltk_data
|
|
|
|
|
5 |
RUN mkdir /.allennlp
|
6 |
RUN mkdir /.cache
|
7 |
RUN mkdir /.local
|
8 |
RUN chmod -R 777 /nltk_data
|
|
|
|
|
9 |
RUN chmod -R 777 /.allennlp
|
10 |
RUN chmod -R 777 /.cache
|
11 |
RUN chmod -R 777 /.local
|
docker_commands.sh
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
# python -m sociolome.lome_webserver &
|
3 |
# cd ..
|
4 |
git clone https://gossminn:$HF_TOKEN@huggingface.co/datasets/responsibility-framing/sociofillmore-datasets /.cache/sfdata
|
5 |
-
mv /.cache/sfdata
|
6 |
-
mv /.cache/sfdata/data/* /data/
|
7 |
|
8 |
python -m sociofillmore.webapp.app 0.0.0.0
|
|
|
2 |
# python -m sociolome.lome_webserver &
|
3 |
# cd ..
|
4 |
git clone https://gossminn:$HF_TOKEN@huggingface.co/datasets/responsibility-framing/sociofillmore-datasets /.cache/sfdata
|
5 |
+
mv -v /.cache/sfdata/* /app/
|
|
|
6 |
|
7 |
python -m sociofillmore.webapp.app 0.0.0.0
|