Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -954,7 +954,7 @@ with gr.Blocks() as block:
|
|
954 |
msg = gr.Textbox()
|
955 |
clear = gr.ClearButton([msg, chatbot])
|
956 |
|
957 |
-
def user(user_message):
|
958 |
return "", [[user_message, None]]
|
959 |
|
960 |
def bot(history):
|
@@ -986,8 +986,7 @@ with gr.Blocks() as block:
|
|
986 |
|
987 |
# selection.select(fn=get_collection_names, outputs=[selection])
|
988 |
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
989 |
-
bot, chatbot, chatbot
|
990 |
-
)
|
991 |
clear.click(lambda: None, None, chatbot, queue=False)
|
992 |
algo_event = algorithm.click(fn=import_client_data, inputs=[selection, zipfile, topical_map, password, project_bool, ai_bool], outputs=[upload, err_imgs])
|
993 |
bf_event = bf_button.click(fn=bf_trigger.run_preprocess_ai, inputs=[bf_topical_map, bf_selection, section], outputs=[bf_upload])
|
|
|
954 |
msg = gr.Textbox()
|
955 |
clear = gr.ClearButton([msg, chatbot])
|
956 |
|
957 |
+
def user(user_message, history):
|
958 |
return "", [[user_message, None]]
|
959 |
|
960 |
def bot(history):
|
|
|
986 |
|
987 |
# selection.select(fn=get_collection_names, outputs=[selection])
|
988 |
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
989 |
+
bot, chatbot, chatbot)
|
|
|
990 |
clear.click(lambda: None, None, chatbot, queue=False)
|
991 |
algo_event = algorithm.click(fn=import_client_data, inputs=[selection, zipfile, topical_map, password, project_bool, ai_bool], outputs=[upload, err_imgs])
|
992 |
bf_event = bf_button.click(fn=bf_trigger.run_preprocess_ai, inputs=[bf_topical_map, bf_selection, section], outputs=[bf_upload])
|