Update app.py
Browse files
app.py
CHANGED
@@ -236,7 +236,6 @@ with gr.Blocks(css = """#col_container {width: 1280px; margin-left: auto; margin
|
|
236 |
b4 = gr.Button("Search Web Live")
|
237 |
with gr.Row(): # output DF2
|
238 |
out_DF = gr.Dataframe(wrap=True, max_rows=1000, overflow_row_behaviour= "paginate", datatype = ["markdown", "markdown"], headers=['Entity', 'Value'])
|
239 |
-
#inp.submit(get_wiki_summary, [inp], [out_DF])
|
240 |
|
241 |
|
242 |
# Accordian chat bot
|
@@ -271,13 +270,15 @@ with gr.Blocks(css = """#col_container {width: 1280px; margin-left: auto; margin
|
|
271 |
appendFile.click(append_file, inputs=[fileName, fileContent], outputs=completedMessage )
|
272 |
|
273 |
# Wikipedia events
|
274 |
-
b4.click(get_wiki_summary, [inp], [out_DF] )
|
|
|
275 |
|
276 |
|
277 |
# Chatbot
|
278 |
inputs.submit(predict, [inputs, top_p, temperature,chat_counter, chatbot, state], [chatbot, state, chat_counter])
|
279 |
b1.click(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter])
|
280 |
b1.click(reset_textbox, [], [inputs])
|
|
|
281 |
inputs.submit(reset_textbox, [], [inputs])
|
282 |
gr.Markdown(description)
|
283 |
|
|
|
236 |
b4 = gr.Button("Search Web Live")
|
237 |
with gr.Row(): # output DF2
|
238 |
out_DF = gr.Dataframe(wrap=True, max_rows=1000, overflow_row_behaviour= "paginate", datatype = ["markdown", "markdown"], headers=['Entity', 'Value'])
|
|
|
239 |
|
240 |
|
241 |
# Accordian chat bot
|
|
|
270 |
appendFile.click(append_file, inputs=[fileName, fileContent], outputs=completedMessage )
|
271 |
|
272 |
# Wikipedia events
|
273 |
+
b4.click(get_wiki_summary, [inputs, inp], [out_DF] )
|
274 |
+
inputs.submit(get_wiki_summary, [inputs, inp], [out_DF])
|
275 |
|
276 |
|
277 |
# Chatbot
|
278 |
inputs.submit(predict, [inputs, top_p, temperature,chat_counter, chatbot, state], [chatbot, state, chat_counter])
|
279 |
b1.click(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter])
|
280 |
b1.click(reset_textbox, [], [inputs])
|
281 |
+
|
282 |
inputs.submit(reset_textbox, [], [inputs])
|
283 |
gr.Markdown(description)
|
284 |
|