Update app.py
Browse files
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 |
-
|
211 |
-
|
212 |
-
|
|
|
|
|
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=
|
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 |
|