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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -45,12 +45,11 @@ 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/network.py', local_dir='src')
49
- hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='src/utils.py')
50
 
51
- import utils.py
52
  from src.network import SpanNet
53
-
54
 
55
  # gr.load(name="nehalelkaref/flat-arabic-entity-classification", hf_token=space_key, src='spaces')
56
  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/*.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)