alexkueck commited on
Commit
ecbd002
1 Parent(s): cad7783

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -153,9 +153,9 @@ def clear_all(history, uploaded_file_paths, chats):
153
  result = data['choices'][0]['message']['content']
154
  worte = result.split()
155
  if len(worte) > 2:
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
 
 
153
  result = data['choices'][0]['message']['content']
154
  worte = result.split()
155
  if len(worte) > 2:
156
+ file_path_download = "data/" + str(len(chats)) + "_Chatverlauf.pdf"
157
  else:
158
+ file_path_download = "data/" + str(len(chats)) + "_" + result + ".pdf"
159
 
160
  erstellePdf(file_path_download, result, dic_history)
161