Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,11 @@ def q_a(lang,text,question):
|
|
21 |
|
22 |
|
23 |
|
24 |
-
|
25 |
fn= q_a,
|
26 |
inputs=[gr.Radio(['Arabic', 'English'], label='Select Language',value= 'Arabic'),
|
27 |
gr.Textbox(label = 'enter text',lines=10),
|
28 |
gr.Textbox(label = 'enter question')],
|
29 |
outputs=gr.Textbox(label = 'answer')
|
30 |
)
|
|
|
|
21 |
|
22 |
|
23 |
|
24 |
+
demo = gr.Interface(
|
25 |
fn= q_a,
|
26 |
inputs=[gr.Radio(['Arabic', 'English'], label='Select Language',value= 'Arabic'),
|
27 |
gr.Textbox(label = 'enter text',lines=10),
|
28 |
gr.Textbox(label = 'enter question')],
|
29 |
outputs=gr.Textbox(label = 'answer')
|
30 |
)
|
31 |
+
demo.launch()
|