aravindhan111222 commited on
Commit
6c28135
·
verified ·
1 Parent(s): 10986dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -104,10 +104,10 @@ def get_llm_response(user_text):
104
  """Sends text to Gemini -> Gets Text Response"""
105
  try:
106
  start_time = time.time()
107
- # response = chat_session.send_message(user_text, safety_settings=safety_settings)
108
  print(f"[Timing] LLM took: {time.time() - start_time:.2f}s")
109
- # return response.text
110
- return "Uses Whisper to convert Audio File"
111
  except Exception as e:
112
  return f"LLM Error: {e}"
113
 
 
104
  """Sends text to Gemini -> Gets Text Response"""
105
  try:
106
  start_time = time.time()
107
+ response = chat_session.send_message(user_text, safety_settings=safety_settings)
108
  print(f"[Timing] LLM took: {time.time() - start_time:.2f}s")
109
+ return response.text
110
+
111
  except Exception as e:
112
  return f"LLM Error: {e}"
113