Spaces:
Build error
Build error
Commit
·
34138b0
1
Parent(s):
3feb5a2
Update app.py
Browse files
app.py
CHANGED
@@ -46,9 +46,13 @@ 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='src', 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)
|
54 |
# iface = gr.Interface(fn=predict_label, inputs="text", outputs="text",auth=True)
|
|
|
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='src/network.py', local_dir='src')
|
50 |
+
hf_hub_download(repo_id="nehalelkaref/stagedNER", token=space_key,filename='src/utils.py', local_dir='src')
|
51 |
+
|
52 |
+
from src import utils
|
53 |
from src.network import SpanNet
|
54 |
|
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)
|
58 |
# iface = gr.Interface(fn=predict_label, inputs="text", outputs="text",auth=True)
|