Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,11 +56,11 @@ def query_vectara(query_str):
|
|
56 |
# Create a Gradio interface
|
57 |
iface = gr.Interface(
|
58 |
fn=query_vectara,
|
59 |
-
inputs=gr.inputs.
|
60 |
outputs=gr.outputs.JSON(),
|
61 |
live=True,
|
62 |
capture_session=True
|
63 |
)
|
64 |
|
65 |
# Run the Gradio interface
|
66 |
-
iface.launch()
|
|
|
56 |
# Create a Gradio interface
|
57 |
iface = gr.Interface(
|
58 |
fn=query_vectara,
|
59 |
+
inputs=gr.inputs.TextArea(label="Ask a question:"),
|
60 |
outputs=gr.outputs.JSON(),
|
61 |
live=True,
|
62 |
capture_session=True
|
63 |
)
|
64 |
|
65 |
# Run the Gradio interface
|
66 |
+
iface.launch()
|