N.Achyuth Reddy commited on
Commit
fbb4bc4
·
1 Parent(s): 5eee3a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,6 +56,8 @@ def predict(message, system_prompt='Your name is OpenGPT. You are developed by A
56
  )
57
  st.write("Done")
58
  return response
 
 
59
 
60
  # Streamlit UI
61
  st.title(TITLE)
@@ -120,8 +122,6 @@ def text_to_speech(text, language='en', filename='output.mp3'):
120
  # Play the audio file
121
  os.system(f'start {filename}') # This works on Windows. For other OS, you might need a different command.
122
 
123
- # Example usage
124
- text_to_speech(response)
125
 
126
 
127
 
 
56
  )
57
  st.write("Done")
58
  return response
59
+ # Example usage
60
+ text_to_speech(response)
61
 
62
  # Streamlit UI
63
  st.title(TITLE)
 
122
  # Play the audio file
123
  os.system(f'start {filename}') # This works on Windows. For other OS, you might need a different command.
124
 
 
 
125
 
126
 
127