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

fixed checkpoints download 2

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +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
  os.system("unzip -n './checkpoints.zip' -d './'")
41
 
42
  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 --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")