Spaces:
Build error
Build error
Commit
·
a756309
1
Parent(s):
cc4b7d8
Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,8 @@ print('STARTING ..')
|
|
46 |
# model_path = 'models/span.model'
|
47 |
# model = SpanNet.load_model(model_path)
|
48 |
space_key = os.environ.get('key')
|
49 |
-
hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='network.py')
|
50 |
-
from network
|
51 |
|
52 |
# gr.load(name="nehalelkaref/flat-arabic-entity-classification", hf_token=space_key, src='spaces')
|
53 |
iface = gr.Interface(fn=temp, inputs="text", outputs="text", batch=False)
|
|
|
46 |
# model_path = 'models/span.model'
|
47 |
# model = SpanNet.load_model(model_path)
|
48 |
space_key = os.environ.get('key')
|
49 |
+
hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='network.py', local_dir='src')
|
50 |
+
from src.network import SpanNet
|
51 |
|
52 |
# gr.load(name="nehalelkaref/flat-arabic-entity-classification", hf_token=space_key, src='spaces')
|
53 |
iface = gr.Interface(fn=temp, inputs="text", outputs="text", batch=False)
|