sandz7 commited on
Commit
1ca04b5
Β·
1 Parent(s): 8f939e2

added back the yields

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -133,25 +133,25 @@ def bot_comms(input_text: str,
133
 
134
  if input_text == "mode":
135
  if llm_mode == "":
136
- return "The mode is currently at Loki Default mode"
137
  else:
138
- return f"The current mode: {llm_mode}"
139
 
140
  if input_text == "check cuda":
141
  cuda_info = check_cuda()
142
- return cuda_info
143
 
144
  if input_text == "switch to llama":
145
  llm_mode = input_text
146
- return "Got it! Llama is now activate for your questions only πŸ¦™"
147
 
148
  if input_text == "switch to gpt-4o":
149
  llm_mode = input_text
150
- return "Understood! GPT-4o is now hearing your responses only πŸ‘Ύ"
151
 
152
  if input_text == "switch to gpt-3.5-turbo":
153
  llm_mode = input_text
154
- return "Done. GPT-3.5-turbo is ready for your questions! πŸƒ"
155
 
156
  if llm_mode == "switch to llama":
157
  streamer = llama_generation(input_text=input_text, history=history, temperature=temperature, max_new_tokens=max_new_tokens)
 
133
 
134
  if input_text == "mode":
135
  if llm_mode == "":
136
+ yield "The mode is currently at Loki Default mode"
137
  else:
138
+ yield f"The current mode: {llm_mode}"
139
 
140
  if input_text == "check cuda":
141
  cuda_info = check_cuda()
142
+ yield cuda_info
143
 
144
  if input_text == "switch to llama":
145
  llm_mode = input_text
146
+ yield "Got it! Llama is now activate for your questions only πŸ¦™"
147
 
148
  if input_text == "switch to gpt-4o":
149
  llm_mode = input_text
150
+ yield "Understood! GPT-4o is now hearing your responses only πŸ‘Ύ"
151
 
152
  if input_text == "switch to gpt-3.5-turbo":
153
  llm_mode = input_text
154
+ yield "Done. GPT-3.5-turbo is ready for your questions! πŸƒ"
155
 
156
  if llm_mode == "switch to llama":
157
  streamer = llama_generation(input_text=input_text, history=history, temperature=temperature, max_new_tokens=max_new_tokens)