Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -146,8 +146,9 @@ def clear_all(history, uploaded_file_paths):
|
|
146 |
|
147 |
#file_path_download = save_and_download(summary)
|
148 |
print("name .................")
|
149 |
-
|
150 |
-
|
|
|
151 |
with open(file_path_download, 'w') as file:
|
152 |
# String in die Datei schreiben
|
153 |
file.write(summary)
|
|
|
146 |
|
147 |
#file_path_download = save_and_download(summary)
|
148 |
print("name .................")
|
149 |
+
res= process_chatverlauf("Gib eine Überschrift aus maximal 2 Worten zu folgendem Text an", MODEL_NAME, OAI_API_KEY)
|
150 |
+
print (res)
|
151 |
+
file_path_download = "data/" + str(len(chats)) + "_" + "Test" #process_chatverlauf("Gib eine Überschrift aus maximal 2 Worten zu folgendem Text an", MODEL_NAME, OAI_API_KEY)
|
152 |
with open(file_path_download, 'w') as file:
|
153 |
# String in die Datei schreiben
|
154 |
file.write(summary)
|