gdown patch
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os
|
2 |
import yaml
|
3 |
import gdown
|
|
|
4 |
import gradio as gr
|
5 |
from predict import PredictTri
|
6 |
from gradio import blocks
|
@@ -11,6 +12,8 @@ if not os.path.exists(output_path):
|
|
11 |
model_gdrive_id = "1FGelqImFkESbTyRsx_elkKIOZ9VbhRuo"
|
12 |
gdown.download(gdrive_templ.format(model_gdrive_id), output=output_path, quiet=False, fuzzy=True)
|
13 |
|
|
|
|
|
14 |
output_path = "vocab.vec"
|
15 |
if not os.path.exists(output_path):
|
16 |
vocab_gdrive_id = "1-0muGvcSYEf8RAVRcwXay4MRex6kmCii"
|
|
|
1 |
import os
|
2 |
import yaml
|
3 |
import gdown
|
4 |
+
import time
|
5 |
import gradio as gr
|
6 |
from predict import PredictTri
|
7 |
from gradio import blocks
|
|
|
12 |
model_gdrive_id = "1FGelqImFkESbTyRsx_elkKIOZ9VbhRuo"
|
13 |
gdown.download(gdrive_templ.format(model_gdrive_id), output=output_path, quiet=False, fuzzy=True)
|
14 |
|
15 |
+
time.sleep(1)
|
16 |
+
|
17 |
output_path = "vocab.vec"
|
18 |
if not os.path.exists(output_path):
|
19 |
vocab_gdrive_id = "1-0muGvcSYEf8RAVRcwXay4MRex6kmCii"
|