petrified commited on
Commit
5fafb73
·
verified ·
1 Parent(s): 93cee4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -186,15 +186,15 @@ with gr.Blocks() as demo:
186
  height=500
187
  )
188
  with gr.Column():
 
189
  examples = gr.Examples(
190
  examples=['Top 10 prod_cate sales', 'Top product in category Seafood','What is the daily sales trend of the product Lobster'],
191
  inputs=chat_input
192
  )
193
- chat_input = gr.Textbox(placeholder="Type your message here...", label="Chat")
 
194
  chat_output = gr.Textbox(label="Response", interactive=False)
195
 
196
- submit_button = gr.Button("生成响应")
197
 
198
- submit_button.click(fn=random_response, inputs=chat_input, outputs=[chat_output, temp_img])
199
 
200
  demo.launch()
 
186
  height=500
187
  )
188
  with gr.Column():
189
+ chat_input = gr.Textbox(placeholder="Type your message here...", label="Chat")
190
  examples = gr.Examples(
191
  examples=['Top 10 prod_cate sales', 'Top product in category Seafood','What is the daily sales trend of the product Lobster'],
192
  inputs=chat_input
193
  )
194
+ submit_button = gr.Button("生成响应")
195
+ submit_button.click(fn=random_response, inputs=chat_input, outputs=[chat_output, temp_img])
196
  chat_output = gr.Textbox(label="Response", interactive=False)
197
 
 
198
 
 
199
 
200
  demo.launch()