Spaces:
Runtime error
Runtime error
Commit
•
b14532a
1
Parent(s):
94f0dd7
fixed downloads
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ Original file is located at
|
|
7 |
https://colab.research.google.com/drive/1Tn_j0k8EJ7ny_h7Pjm0stJhNMG4si_y_
|
8 |
"""
|
9 |
|
10 |
-
! pip install -q gradio
|
11 |
|
12 |
import pandas as pd
|
13 |
import re
|
@@ -29,10 +29,10 @@ from nltk.translate.bleu_score import corpus_bleu
|
|
29 |
|
30 |
import gradio as gr
|
31 |
|
32 |
-
|
33 |
-
|
34 |
|
35 |
-
|
36 |
|
37 |
nlp = spacy.load("en_core_web_sm")
|
38 |
|
|
|
7 |
https://colab.research.google.com/drive/1Tn_j0k8EJ7ny_h7Pjm0stJhNMG4si_y_
|
8 |
"""
|
9 |
|
10 |
+
# ! pip install -q gradio
|
11 |
|
12 |
import pandas as pd
|
13 |
import re
|
|
|
29 |
|
30 |
import gradio as gr
|
31 |
|
32 |
+
os.system("wget -nc 'https://docs.google.com/uc?export=download&id=1Y8Ee4lUs30BAfFtL3d3VjwChmbDG7O6H' -O data_final.pkl")
|
33 |
+
os.system("wget -nc --load-cookies /tmp/cookies.txt 'https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1gAQVaxg_2mNcr8qwx0J2UwpkvoJgLu6a' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1gAQVaxg_2mNcr8qwx0J2UwpkvoJgLu6a' -O checkpoints.zip && rm -rf /tmp/cookies.txt")
|
34 |
|
35 |
+
os.system("unzip -n './checkpoints.zip' -d './'")
|
36 |
|
37 |
nlp = spacy.load("en_core_web_sm")
|
38 |
|