alexkueck commited on
Commit
25bf0e2
·
1 Parent(s): 9787837

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -170,8 +170,6 @@ def download_chats(selected_chats):
170
  data = "\n\n".join(chats[chat] for chat in selected_chats)
171
 
172
  file_path = save_and_download(data)
173
- cleanup_button = gr.Button("Cleanup")
174
- cleanup_button.click(lambda: cleanup(file_path), inputs=[], outputs=[])
175
  return gr.File(file_path, label="Download-Chat"), cleanup_button
176
 
177
 
@@ -688,6 +686,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
688
  #Bild Anzeige neben dem Button wieder entfernen oder austauschen..
689
  image_display.select(file_loeschen, [], [attached_file, image_display])
690
  download_button.click(fn=download_chats, inputs=chat_selector, outputs=[file_download, loeschen])
 
691
 
692
  #Berechnung oder Ausgabe anhalten (kann danach fortgesetzt werden)
693
  cancelBtn.click(cancel_outputing, [], [status_display], cancels=[predict_event1,predict_event2, predict_event3])
 
170
  data = "\n\n".join(chats[chat] for chat in selected_chats)
171
 
172
  file_path = save_and_download(data)
 
 
173
  return gr.File(file_path, label="Download-Chat"), cleanup_button
174
 
175
 
 
686
  #Bild Anzeige neben dem Button wieder entfernen oder austauschen..
687
  image_display.select(file_loeschen, [], [attached_file, image_display])
688
  download_button.click(fn=download_chats, inputs=chat_selector, outputs=[file_download, loeschen])
689
+ #loeschen.click(lambda: cleanup(file_path), inputs=[], outputs=[])
690
 
691
  #Berechnung oder Ausgabe anhalten (kann danach fortgesetzt werden)
692
  cancelBtn.click(cancel_outputing, [], [status_display], cancels=[predict_event1,predict_event2, predict_event3])