Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -147,14 +147,9 @@ with gr.Blocks() as demo:
|
|
147 |
query_button = gr.Button("Search")
|
148 |
query_output = gr.Textbox()
|
149 |
|
150 |
-
# Define inputs in Gradio's expected format
|
151 |
-
inputs = [
|
152 |
-
gr.Input(type="state", label="Conversation State"),
|
153 |
-
gr.Input(type="text", label="Query Input")
|
154 |
-
]
|
155 |
-
|
156 |
# Setup the click event with correct inputs and outputs
|
157 |
-
query_button.click(fn=process_and_query, inputs=
|
158 |
|
159 |
demo.launch()
|
160 |
|
|
|
|
147 |
query_button = gr.Button("Search")
|
148 |
query_output = gr.Textbox()
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
# Setup the click event with correct inputs and outputs
|
151 |
+
query_button.click(fn=process_and_query, inputs=[query], outputs=query_output)
|
152 |
|
153 |
demo.launch()
|
154 |
|
155 |
+
|