Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,7 @@ def clear_all(history):
|
|
| 141 |
#chats ist ein dictionary
|
| 142 |
chats[id_neu]= summary
|
| 143 |
|
| 144 |
-
return None, gr.Image(visible=False), [], gr.CheckboxGroup(label=None, choices=update_chat_options())
|
| 145 |
|
| 146 |
|
| 147 |
#########################################
|
|
@@ -662,7 +662,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 662 |
predict_event1 = user_input.submit(**transfer_input_args, queue=False,).then(**predict_args)
|
| 663 |
predict_event2 = submitBtn.click(**transfer_input_args, queue=False,).then(**predict_args)
|
| 664 |
predict_event3 = upload.upload(file_anzeigen, [upload], [image_display, image_display, attached_file] ) #.then(**predict_args)
|
| 665 |
-
emptyBtn.click(clear_all, [history], [attached_file, image_display, history, chat_selector])
|
| 666 |
#Bild Anzeige neben dem Button wieder entfernen oder austauschen..
|
| 667 |
image_display.select(file_loeschen, [], [attached_file, image_display])
|
| 668 |
download_button.click(fn=download_chats, inputs=chat_selector, outputs=file_download)
|
|
|
|
| 141 |
#chats ist ein dictionary
|
| 142 |
chats[id_neu]= summary
|
| 143 |
|
| 144 |
+
return None, gr.Image(visible=False), [], gr.CheckboxGroup(label=None, choices=update_chat_options()), gr.File(visible=False)
|
| 145 |
|
| 146 |
|
| 147 |
#########################################
|
|
|
|
| 662 |
predict_event1 = user_input.submit(**transfer_input_args, queue=False,).then(**predict_args)
|
| 663 |
predict_event2 = submitBtn.click(**transfer_input_args, queue=False,).then(**predict_args)
|
| 664 |
predict_event3 = upload.upload(file_anzeigen, [upload], [image_display, image_display, attached_file] ) #.then(**predict_args)
|
| 665 |
+
emptyBtn.click(clear_all, [history], [attached_file, image_display, history, chat_selector, file_download])
|
| 666 |
#Bild Anzeige neben dem Button wieder entfernen oder austauschen..
|
| 667 |
image_display.select(file_loeschen, [], [attached_file, image_display])
|
| 668 |
download_button.click(fn=download_chats, inputs=chat_selector, outputs=file_download)
|