Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
+
|