nehalelkaref commited on
Commit
b6bfdc8
·
1 Parent(s): a8ebe93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -45,11 +45,13 @@ print('STARTING ..')
45
  # model_path = 'models/span.model'
46
  # model = SpanNet.load_model(model_path)
47
  space_key = os.environ.get('key')
48
- hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='src/*.py', local_dir='src')
 
 
49
  # hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='src/utils.py')
50
 
51
  from src.network import SpanNet
52
- from src.utils import *
53
 
54
  # gr.load(name="nehalelkaref/flat-arabic-entity-classification", hf_token=space_key, src='spaces')
55
  iface = gr.Interface(fn=temp, inputs="text", outputs="text", batch=False)
 
45
  # model_path = 'models/span.model'
46
  # model = SpanNet.load_model(model_path)
47
  space_key = os.environ.get('key')
48
+ hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='src/network.py', local_dir='src')
49
+ hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='src/utils.py', local_dir='src2')
50
+
51
  # hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='src/utils.py')
52
 
53
  from src.network import SpanNet
54
+ from src2.utils import *
55
 
56
  # gr.load(name="nehalelkaref/flat-arabic-entity-classification", hf_token=space_key, src='spaces')
57
  iface = gr.Interface(fn=temp, inputs="text", outputs="text", batch=False)