Casio991ms commited on
Commit
05f08e0
1 Parent(s): ac51b66

fixed checkpoints download

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -36,8 +36,7 @@ from nltk.translate.bleu_score import corpus_bleu
36
  import gradio as gr
37
 
38
  os.system("wget -nc 'https://docs.google.com/uc?export=download&id=1Y8Ee4lUs30BAfFtL3d3VjwChmbDG7O6H' -O data_final.pkl")
39
- 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")
40
-
41
  os.system("unzip -n './checkpoints.zip' -d './'")
42
 
43
  nlp = spacy.load("en_core_web_sm")
 
36
  import gradio as gr
37
 
38
  os.system("wget -nc 'https://docs.google.com/uc?export=download&id=1Y8Ee4lUs30BAfFtL3d3VjwChmbDG7O6H' -O data_final.pkl")
39
+ 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")
 
40
  os.system("unzip -n './checkpoints.zip' -d './'")
41
 
42
  nlp = spacy.load("en_core_web_sm")