Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,8 @@ with gr.Blocks() as demo:
|
|
146 |
query = gr.Textbox(label="Enter your query")
|
147 |
query_button = gr.Button("Search")
|
148 |
query_output = gr.Textbox()
|
149 |
-
|
|
|
|
|
150 |
|
151 |
demo.launch()
|
152 |
-
|
|
|
146 |
query = gr.Textbox(label="Enter your query")
|
147 |
query_button = gr.Button("Search")
|
148 |
query_output = gr.Textbox()
|
149 |
+
|
150 |
+
# Define inputs in the correct format
|
151 |
+
query_button.click(fn=process_and_query, inputs=[{"type": "state", "value": state}, {"type": "text", "value": query}], outputs=query_output)
|
152 |
|
153 |
demo.launch()
|
|