Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,16 +64,16 @@ def search_glossary(query):
|
|
| 64 |
st.write('## Processing query against GPT and Llama:')
|
| 65 |
# ------------------------------------------------------------------------------------------------
|
| 66 |
st.write('Reasoning with your inputs using GPT...')
|
| 67 |
-
response = chat_with_model(
|
| 68 |
st.write('Response:')
|
| 69 |
st.write(response)
|
| 70 |
filename = generate_filename(response, "txt")
|
| 71 |
-
create_file(filename,
|
| 72 |
|
| 73 |
st.write('Reasoning with your inputs using Llama...')
|
| 74 |
-
response = StreamLLMChatResponse(
|
| 75 |
-
filename_txt = generate_filename(
|
| 76 |
-
create_file(filename_txt,
|
| 77 |
# ------------------------------------------------------------------------------------------------
|
| 78 |
|
| 79 |
|
|
|
|
| 64 |
st.write('## Processing query against GPT and Llama:')
|
| 65 |
# ------------------------------------------------------------------------------------------------
|
| 66 |
st.write('Reasoning with your inputs using GPT...')
|
| 67 |
+
response = chat_with_model(query)
|
| 68 |
st.write('Response:')
|
| 69 |
st.write(response)
|
| 70 |
filename = generate_filename(response, "txt")
|
| 71 |
+
create_file(filename, query, response, should_save)
|
| 72 |
|
| 73 |
st.write('Reasoning with your inputs using Llama...')
|
| 74 |
+
response = StreamLLMChatResponse(query)
|
| 75 |
+
filename_txt = generate_filename(query, "md")
|
| 76 |
+
create_file(filename_txt, query, response, should_save)
|
| 77 |
# ------------------------------------------------------------------------------------------------
|
| 78 |
|
| 79 |
|