fdehlinger commited on
Commit
9d1b610
·
1 Parent(s): 7d8e0d8
Files changed (1) hide show
  1. app.py +3 -1
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="text", outputs="text")
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()