Update app.py
Browse files
app.py
CHANGED
|
@@ -156,9 +156,14 @@ def clear_all(history, uploaded_file_paths, chats):
|
|
| 156 |
file_path_download = "data/" + str(len(chats)) + "_Chatverlauf"
|
| 157 |
else:
|
| 158 |
file_path_download = "data/" + str(len(chats)) + "_" + result
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
with open(file_path_download, 'w') as file:
|
| 160 |
# String in die Datei schreiben
|
| 161 |
file.write(summary)
|
|
|
|
| 162 |
|
| 163 |
#die session variable in gradio erweitern und alle fliepath neu in das gr.File hochladen
|
| 164 |
uploaded_file_paths= uploaded_file_paths + [file_path_download]
|
|
|
|
| 156 |
file_path_download = "data/" + str(len(chats)) + "_Chatverlauf"
|
| 157 |
else:
|
| 158 |
file_path_download = "data/" + str(len(chats)) + "_" + result
|
| 159 |
+
|
| 160 |
+
erstellePdf(file_path_download, result, dic_history)
|
| 161 |
+
|
| 162 |
+
"""
|
| 163 |
with open(file_path_download, 'w') as file:
|
| 164 |
# String in die Datei schreiben
|
| 165 |
file.write(summary)
|
| 166 |
+
"""
|
| 167 |
|
| 168 |
#die session variable in gradio erweitern und alle fliepath neu in das gr.File hochladen
|
| 169 |
uploaded_file_paths= uploaded_file_paths + [file_path_download]
|