Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -557,14 +557,14 @@ def main():
|
|
| 557 |
st.write('Reasoning with your inputs...')
|
| 558 |
|
| 559 |
# new - llama
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 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 |
|
|
|
|
| 557 |
st.write('Reasoning with your inputs...')
|
| 558 |
|
| 559 |
# new - llama
|
| 560 |
+
response = StreamLLMChatResponse(file_contents)
|
| 561 |
+
filename = generate_filename(user_prompt, ".txt")
|
| 562 |
+
create_file(filename, 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 |
|