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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -147,7 +147,14 @@ with gr.Blocks() as demo:
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()
 
 
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=inputs, outputs=query_output)
158
 
159
  demo.launch()
160
+