awacke1 commited on
Commit
5e5bd97
·
1 Parent(s): 32d6789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -212,8 +212,10 @@ def chat_with_model(prompt, document_section, model_choice='Llama-2-7b-chat-hf')
212
 
213
  except:
214
  st.write('Stream llm issue')
 
215
  st.write("Elapsed time:")
216
  st.write(time.time() - start_time)
 
217
  filename = generate_filename(full_reply_content, prompt)
218
  create_file(filename, prompt, full_reply_content, should_save)
219
  readitaloud(full_reply_content)
 
212
 
213
  except:
214
  st.write('Stream llm issue')
215
+ full_reply_content = result
216
  st.write("Elapsed time:")
217
  st.write(time.time() - start_time)
218
+
219
  filename = generate_filename(full_reply_content, prompt)
220
  create_file(filename, prompt, full_reply_content, should_save)
221
  readitaloud(full_reply_content)