walaa2022 commited on
Commit
01db229
·
verified ·
1 Parent(s): e8ab00f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -78,6 +78,8 @@ def generate_ai_response(prompt, simulate=True):
78
  st.error(f"Error generating AI response: {e}")
79
  return "Sorry, I couldn't generate a response at this time."
80
 
 
 
81
  def generate_voice_response(text, simulate=True):
82
  """Generate voice response using ElevenLabs API"""
83
  if simulate:
@@ -116,7 +118,8 @@ def generate_voice_response(text, simulate=True):
116
  except Exception as e:
117
  st.error(f"Error generating voice response: {e}")
118
  return None
119
-
 
120
  # Utility Functions
121
  def switch_page(page_name):
122
  """Function to switch between pages"""
 
78
  st.error(f"Error generating AI response: {e}")
79
  return "Sorry, I couldn't generate a response at this time."
80
 
81
+
82
+
83
  def generate_voice_response(text, simulate=True):
84
  """Generate voice response using ElevenLabs API"""
85
  if simulate:
 
118
  except Exception as e:
119
  st.error(f"Error generating voice response: {e}")
120
  return None
121
+
122
+
123
  # Utility Functions
124
  def switch_page(page_name):
125
  """Function to switch between pages"""