Vera-ZWY commited on
Commit
2e61e42
·
verified ·
1 Parent(s): 571cdc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -206,10 +206,12 @@ with gr.Blocks(title="Reddit Election Analysis") as demo:
206
  - Summarize the main discussions about voting process
207
  - What are the common opinions about candidates?
208
  """)
209
- with gr.Column():
210
- output_text = gr.Textbox(
211
- label="Response",
212
- lines=20
 
 
213
  with gr.Column():
214
  chatbot = gr.Chatbot(label="Chat History")
215
 
@@ -256,7 +258,7 @@ with gr.Blocks(title="Reddit Election Analysis") as demo:
256
  submit_btn.click(
257
  fn=chat_function,
258
  inputs=[query_input, year_selector],
259
- outputs= output_text
260
  )
261
 
262
 
 
206
  - Summarize the main discussions about voting process
207
  - What are the common opinions about candidates?
208
  """)
209
+ # with gr.Column():
210
+ # output_text = gr.Textbox(
211
+ # label="Response",
212
+ # lines=20
213
+ # )
214
+
215
  with gr.Column():
216
  chatbot = gr.Chatbot(label="Chat History")
217
 
 
258
  submit_btn.click(
259
  fn=chat_function,
260
  inputs=[query_input, year_selector],
261
+ outputs= [chatbot, query_input]
262
  )
263
 
264