alexkueck commited on
Commit
3961994
1 Parent(s): 3cbda05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -144,7 +144,12 @@ def clear_all(history, uploaded_file_paths):
144
  else:
145
  chats[0]=summary
146
 
147
- file_path_download = save_and_download(summary)
 
 
 
 
 
148
  #die session variable in gradio erweitern und alle fliepath neu in das gr.File hochladen
149
  uploaded_file_paths= uploaded_file_paths + [file_path_download]
150
 
 
144
  else:
145
  chats[0]=summary
146
 
147
+ #file_path_download = save_and_download(summary)
148
+
149
+ with open(file_path_download, 'w') as file:
150
+ # String in die Datei schreiben
151
+ file.write(summary)
152
+
153
  #die session variable in gradio erweitern und alle fliepath neu in das gr.File hochladen
154
  uploaded_file_paths= uploaded_file_paths + [file_path_download]
155