Spaces:
Sleeping
Sleeping
Commit
·
9d1b610
1
Parent(s):
7d8e0d8
text_box
Browse files
app.py
CHANGED
@@ -26,6 +26,8 @@ def greet(question):
|
|
26 |
# return f"Hello, {question} !"
|
27 |
return query_engine.query(question)
|
28 |
|
|
|
|
|
29 |
|
30 |
-
demo = gr.Interface(fn=greet, inputs=
|
31 |
demo.launch()
|
|
|
26 |
# return f"Hello, {question} !"
|
27 |
return query_engine.query(question)
|
28 |
|
29 |
+
question_textbox = gr.Textbox(label="You question")
|
30 |
+
answer_textbox = gr.Textbox(label="Answer")
|
31 |
|
32 |
+
demo = gr.Interface(fn=greet, inputs=question_textbox, outputs=answer_textbox)
|
33 |
demo.launch()
|