wop commited on
Commit
1487649
·
1 Parent(s): 1619dde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -21,9 +21,7 @@ def inference_ui(question):
21
  })
22
  return output['context']
23
 
24
- def ask_question_ui():
25
- question = gr.textbox("Enter your question:")
26
- context = gr.textbox("Enter context:")
27
  output2 = query2({
28
  "inputs": {
29
  "question": question,
@@ -37,3 +35,4 @@ iface_ask_question = gr.Interface(fn=ask_question_ui, inputs=["text", "text"], o
37
 
38
  iface_context.launch(share=True)
39
  iface_ask_question.launch(share=True)
 
 
21
  })
22
  return output['context']
23
 
24
+ def ask_question_ui(question, context):
 
 
25
  output2 = query2({
26
  "inputs": {
27
  "question": question,
 
35
 
36
  iface_context.launch(share=True)
37
  iface_ask_question.launch(share=True)
38
+