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

Update app.py

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