nehalelkaref commited on
Commit
3b40a9d
·
verified ·
1 Parent(s): 52f5ca8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -60,5 +60,14 @@ if __name__ == '__main__':
60
  msa_span_model = SpanNet.load_model(msa_span_path)
61
  entity_model = EntNet.load_model(entity_path)
62
  # iface= gr.Base(primary_hue="green")
63
- iface = gr.Interface(fn=predict_label, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
 
64
  iface.launch(show_api=False)
 
60
  msa_span_model = SpanNet.load_model(msa_span_path)
61
  entity_model = EntNet.load_model(entity_path)
62
  # iface= gr.Base(primary_hue="green")
63
+ ex = gr.Examples(
64
+ [["hi", "Adam"], ["hello", "Eve"]],
65
+ [txt, txt_2],
66
+ txt_3,
67
+ combine,
68
+ cache_examples=True,
69
+ )
70
+ iface = gr.Interface(fn=predict_label, inputs="text", outputs="text",
71
+ theme="smooth_slate", examples=ex,
72
+ theme="finlaymacklon/smooth_slate")
73
  iface.launch(show_api=False)