Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,9 +27,8 @@ def ask_ai(question, context):
|
|
27 |
|
28 |
iface = gr.Interface(
|
29 |
fn=ask_ai,
|
30 |
-
inputs=[gr.Textbox("Question"
|
31 |
outputs=gr.Textbox("Answer"),
|
32 |
-
live=True,
|
33 |
capture_session=True,
|
34 |
)
|
35 |
|
|
|
27 |
|
28 |
iface = gr.Interface(
|
29 |
fn=ask_ai,
|
30 |
+
inputs=[gr.Textbox("Question"), gr.Button("get_context", get_context)],
|
31 |
outputs=gr.Textbox("Answer"),
|
|
|
32 |
capture_session=True,
|
33 |
)
|
34 |
|