awacke1 commited on
Commit
6e95e4c
·
verified ·
1 Parent(s): 941021f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -113,21 +113,25 @@ def search_glossary(query, roleplaying_glossary):
113
  st.write('## ' + query)
114
 
115
  all=""
116
- st.write('🔍Running with GPT.') # -------------------------------------------------------------------------------------------------
117
  response = chat_with_model(query)
118
  #st.write(response)
119
 
120
  filename = generate_filename(query + ' --- ' + response, "md")
121
- create_file(filename, query, query + ' --- ' + response, should_save)
122
 
123
- st.write('🔍Running with Llama.') # -------------------------------------------------------------------------------------------------
124
  response2 = StreamLLMChatResponse(query)
125
  #st.write(response2)
126
 
127
  filename_txt = generate_filename(query + ' --- ' + response2, "md")
128
- create_file(filename_txt, query, query + ' --- ' + response2, should_save)
129
 
130
  all = '# Query: ' + query + '# Response: ' + response + '# Response2: ' + response2
 
 
 
 
131
  SpeechSynthesis(all)
132
  return all
133
 
 
113
  st.write('## ' + query)
114
 
115
  all=""
116
+ st.write('## 🔍 Running with GPT.') # -------------------------------------------------------------------------------------------------
117
  response = chat_with_model(query)
118
  #st.write(response)
119
 
120
  filename = generate_filename(query + ' --- ' + response, "md")
121
+ create_file(filename, query, response, should_save)
122
 
123
+ st.write('## 🔍 Running with Llama.') # -------------------------------------------------------------------------------------------------
124
  response2 = StreamLLMChatResponse(query)
125
  #st.write(response2)
126
 
127
  filename_txt = generate_filename(query + ' --- ' + response2, "md")
128
+ create_file(filename_txt, query, response2, should_save)
129
 
130
  all = '# Query: ' + query + '# Response: ' + response + '# Response2: ' + response2
131
+
132
+ filename_txt2 = generate_filename(query + ' --- ' + all, "md")
133
+ create_file(filename_txt2, query, all, should_save)
134
+
135
  SpeechSynthesis(all)
136
  return all
137