awacke1 commited on
Commit
3327645
·
1 Parent(s): 1921006

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -555,9 +555,17 @@ def main():
555
  if next_action=='search':
556
  file_content_area = st.text_area("File Contents:", file_contents, height=500)
557
  st.write('Reasoning with your inputs...')
558
- response = chat_with_model(user_prompt, file_contents, model_choice)
559
- filename = generate_filename(file_contents, choice)
560
- create_file(filename, user_prompt, response, should_save)
 
 
 
 
 
 
 
 
561
  st.experimental_rerun()
562
 
563
  # Feedback
 
555
  if next_action=='search':
556
  file_content_area = st.text_area("File Contents:", file_contents, height=500)
557
  st.write('Reasoning with your inputs...')
558
+
559
+ # new - llama
560
+ response = StreamLLMChatResponse(user_prompt + file_contents)
561
+ filename = generate_filename(transcription, ".txt")
562
+ create_file(filename, transcription, response, should_save)
563
+
564
+ # old - gpt
565
+ #response = chat_with_model(user_prompt, file_contents, model_choice)
566
+ #filename = generate_filename(file_contents, choice)
567
+ #create_file(filename, user_prompt, response, should_save)
568
+
569
  st.experimental_rerun()
570
 
571
  # Feedback