Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,9 +65,11 @@ if __name__ == '__main__':
|
|
| 65 |
with gr.Blocks(theme='finlaymacklon/smooth_slate') as iface:
|
| 66 |
example_input=gr.Textbox(label="Input Example", lines=1)
|
| 67 |
|
| 68 |
-
gr.Interface(fn=predict_label, inputs=
|
| 69 |
theme="smooth_slate")
|
| 70 |
gr.Examples(
|
| 71 |
-
examples=["النشرة الإخبارية الصادرة عن الأونروا رقم 113 (1986/1/8)."
|
|
|
|
|
|
|
| 72 |
inputs= example_input)
|
| 73 |
iface.launch(show_api=False)
|
|
|
|
| 65 |
with gr.Blocks(theme='finlaymacklon/smooth_slate') as iface:
|
| 66 |
example_input=gr.Textbox(label="Input Example", lines=1)
|
| 67 |
|
| 68 |
+
gr.Interface(fn=predict_label, inputs=example_input, outputs="text",
|
| 69 |
theme="smooth_slate")
|
| 70 |
gr.Examples(
|
| 71 |
+
examples=["النشرة الإخبارية الصادرة عن الأونروا رقم 113 (1986/1/8).",
|
| 72 |
+
"صورة لمدينة أريحا القديمة :تل السلطان",
|
| 73 |
+
"السلطان"],
|
| 74 |
inputs= example_input)
|
| 75 |
iface.launch(show_api=False)
|