sasan commited on
Commit
9549d62
·
1 Parent(s): cc1b4c0

chore: Update vehicle destination in calculate_route function

Browse files
Files changed (1) hide show
  1. kitt.py +4 -1
kitt.py CHANGED
@@ -130,6 +130,8 @@ def run_model(query, voice_character):
130
  out = ollama.generate(**data)
131
  llm_response = out["response"]
132
  if "Call: " in llm_response:
 
 
133
  func_name, kwargs = extract_func_args(llm_response)
134
  print(f"Function: {func_name}, Args: {kwargs}")
135
  if func_name == "do_anything_else":
@@ -304,6 +306,7 @@ gr.close_all()
304
  # Launch the interface.
305
 
306
  if __name__ == "__main__":
307
- demo.launch(debug=True, server_name="0.0.0.0", server_port=7860, ssl_verify=False)
 
308
 
309
  # iface.launch(debug=True, share=False, server_name="0.0.0.0", server_port=7860, ssl_verify=False)
 
130
  out = ollama.generate(**data)
131
  llm_response = out["response"]
132
  if "Call: " in llm_response:
133
+ print(f"llm_response: {llm_response}")
134
+ llm_response = llm_response.replace("<bot_end>"," ")
135
  func_name, kwargs = extract_func_args(llm_response)
136
  print(f"Function: {func_name}, Args: {kwargs}")
137
  if func_name == "do_anything_else":
 
306
  # Launch the interface.
307
 
308
  if __name__ == "__main__":
309
+ # demo.launch(debug=True, server_name="0.0.0.0", server_port=7860, ssl_verify=False)
310
+ demo.launch(debug=True, server_name="0.0.0.0", server_port=7860, ssl_verify=True, share=True)
311
 
312
  # iface.launch(debug=True, share=False, server_name="0.0.0.0", server_port=7860, ssl_verify=False)