3v324v23 commited on
Commit
3da079f
1 Parent(s): dfac973
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  # from transformers import AutoModel
2
  import argparse
3
  import logging
@@ -13,10 +19,6 @@ from torchvision import transforms
13
  from utils import Config, Logger, CharsetMapper
14
  import gradio as gr
15
 
16
- import gdown
17
- gdown.download(id='1mYM_26qHUom_5NU7iutHneB_KHlLjL5y', output='workdir.zip')
18
- os.system('unzip workdir.zip')
19
-
20
  def get_model(config):
21
  import importlib
22
  names = config.model_name.split('.')
 
1
+
2
+ import os
3
+ os.system('pip install --upgrade gdown')
4
+ import gdown
5
+ gdown.download(id='1mYM_26qHUom_5NU7iutHneB_KHlLjL5y', output='workdir.zip')
6
+ os.system('unzip workdir.zip')
7
  # from transformers import AutoModel
8
  import argparse
9
  import logging
 
19
  from utils import Config, Logger, CharsetMapper
20
  import gradio as gr
21
 
 
 
 
 
22
  def get_model(config):
23
  import importlib
24
  names = config.model_name.split('.')