nehalelkaref commited on
Commit
f846518
·
1 Parent(s): 841bfce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -39,7 +39,9 @@ def predict_label(text):
39
  output+= op + ','
40
  print('OUTPUT HERE')
41
  return 'output'
42
-
43
- iface = gr.Interface(fn=predict_label, inputs="text", outputs="text")
 
 
44
  iface.launch()
45
 
 
39
  output+= op + ','
40
  print('OUTPUT HERE')
41
  return 'output'
42
+ model_path = 'models/span.model'
43
+ model = SpanNet.load_model(model_path)
44
+ iface = gr.Interface(inputs="text", outputs="text")
45
+ # iface = gr.Interface(fn=predict_label, inputs="text", outputs="text")
46
  iface.launch()
47