YoussefA7med commited on
Commit
7236604
·
verified ·
1 Parent(s): 1ed0bf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ class EnglishTutor:
123
  if text.startswith('"') and text.endswith('"'):
124
  text = text[1:-1]
125
 
126
- tts_prompt = {text}
127
  tts_emotion = "Warm, encouraging, and clear with a friendly and supportive tone."
128
 
129
  return TTS_CLIENT.predict(
 
123
  if text.startswith('"') and text.endswith('"'):
124
  text = text[1:-1]
125
 
126
+ tts_prompt = text # Remove the curly braces that were creating a set
127
  tts_emotion = "Warm, encouraging, and clear with a friendly and supportive tone."
128
 
129
  return TTS_CLIENT.predict(