DSatishchandra commited on
Commit
8d8010c
·
verified ·
1 Parent(s): 6ddceba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,7 +18,8 @@ menu = {
18
  def speak(text):
19
  tts = gTTS(text=text, lang='en')
20
  tts.save("output.mp3")
21
- os.system("mpg321 output.mp3") # This can be omitted for environments like Hugging Face that don't support audio
 
22
 
23
  # Function to process the order
24
  def process_order(order):
 
18
  def speak(text):
19
  tts = gTTS(text=text, lang='en')
20
  tts.save("output.mp3")
21
+ # Do not try to play the audio, just save it
22
+ # os.system("mpg321 output.mp3") # Removed, as it is not supported in Hugging Face
23
 
24
  # Function to process the order
25
  def process_order(order):