Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -146,24 +146,29 @@ def search_glossary(query, roleplaying_glossary):
|
|
146 |
if not found:
|
147 |
st.write("No results found.")
|
148 |
|
149 |
-
|
|
|
150 |
|
151 |
all=""
|
152 |
-
st.write('🔍Running with GPT.') # -------------------------------------------------------------------------------------------------
|
153 |
response = chat_with_model(query)
|
154 |
-
st.write(response)
|
155 |
|
156 |
filename = generate_filename(query + ' --- ' + response, "md")
|
157 |
-
create_file(filename, query,
|
158 |
|
159 |
-
st.write('🔍Running with Llama.') # -------------------------------------------------------------------------------------------------
|
160 |
response2 = StreamLLMChatResponse(query)
|
161 |
-
st.write(response2)
|
162 |
|
163 |
filename_txt = generate_filename(query + ' --- ' + response2, "md")
|
164 |
-
create_file(filename_txt, query,
|
165 |
|
166 |
all = '# Query: ' + query + '# Response: ' + response + '# Response2: ' + response2
|
|
|
|
|
|
|
|
|
167 |
SpeechSynthesis(all)
|
168 |
return all
|
169 |
|
|
|
146 |
if not found:
|
147 |
st.write("No results found.")
|
148 |
|
149 |
+
|
150 |
+
st.write('## ' + query)
|
151 |
|
152 |
all=""
|
153 |
+
st.write('## 🔍 Running with GPT.') # -------------------------------------------------------------------------------------------------
|
154 |
response = chat_with_model(query)
|
155 |
+
#st.write(response)
|
156 |
|
157 |
filename = generate_filename(query + ' --- ' + response, "md")
|
158 |
+
create_file(filename, query, response, should_save)
|
159 |
|
160 |
+
st.write('## 🔍 Running with Llama.') # -------------------------------------------------------------------------------------------------
|
161 |
response2 = StreamLLMChatResponse(query)
|
162 |
+
#st.write(response2)
|
163 |
|
164 |
filename_txt = generate_filename(query + ' --- ' + response2, "md")
|
165 |
+
create_file(filename_txt, query, response2, should_save)
|
166 |
|
167 |
all = '# Query: ' + query + '# Response: ' + response + '# Response2: ' + response2
|
168 |
+
|
169 |
+
filename_txt2 = generate_filename(query + ' --- ' + all, "md")
|
170 |
+
create_file(filename_txt2, query, all, should_save)
|
171 |
+
|
172 |
SpeechSynthesis(all)
|
173 |
return all
|
174 |
|