adil9858 commited on
Commit
18d3942
·
verified ·
1 Parent(s): 5ab00b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ def tts(text):
69
  f.write(chunk)
70
 
71
  # Play the audio in Streamlit
72
- st.audio(audio_file_path, format="audio/mp3")
73
  except Exception as e:
74
  st.error(f"Error generating speech: {e}")
75
 
 
69
  f.write(chunk)
70
 
71
  # Play the audio in Streamlit
72
+ st.audio(audio_file_path, format="audio/mp3",autoplay=True)
73
  except Exception as e:
74
  st.error(f"Error generating speech: {e}")
75