Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
559 |
-
|
560 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|