NaimaAqeel commited on
Commit
d7e53b2
·
verified ·
1 Parent(s): 4a20efe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- query_button.click(fn=process_and_query, inputs=(state, query), outputs=query_output)
 
 
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()