nehalelkaref commited on
Commit
cd4dfb7
·
verified ·
1 Parent(s): 7958cde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -60,10 +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
- comp = gr.Textbox(label="Input Example", lines=1)
 
 
 
 
 
 
64
  example = gr.Examples(
65
  examples=["النشرة الإخبارية الصادرة عن الأونروا رقم 113 (1986/1/8)."],
66
- inputs= comp)
67
- iface = gr.Interface(fn=predict_label, inputs="text", outputs="text",
68
- examples=example,theme="finlaymacklon/smooth_slate")
69
  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
+ comp =
64
+
65
+ with gr.Blocks() as iface:
66
+ example_input=gr.Textbox(label="Input Example", lines=1)
67
+
68
+ gr.Interface(fn=predict_label, inputs="text", outputs="text",
69
+ examples=example,theme="finlaymacklon/smooth_slate")
70
  example = gr.Examples(
71
  examples=["النشرة الإخبارية الصادرة عن الأونروا رقم 113 (1986/1/8)."],
72
+ inputs= example_input)
 
 
73
  iface.launch(show_api=False)