Spaces:
Sleeping
Sleeping
github-actions[bot]
commited on
Commit
·
748e472
1
Parent(s):
dacfaa2
Sync with https://github.com/mozilla-ai/document-to-podcast
Browse files- Dockerfile +1 -1
- app.py +1 -1
Dockerfile
CHANGED
@@ -23,4 +23,4 @@ RUN pip3 install document-to-podcast
|
|
23 |
COPY --chown=user . $HOME/app
|
24 |
|
25 |
EXPOSE 8501
|
26 |
-
ENTRYPOINT ["streamlit", "run", "app.py"]
|
|
|
23 |
COPY --chown=user . $HOME/app
|
24 |
|
25 |
EXPOSE 8501
|
26 |
+
ENTRYPOINT ["streamlit", "run", "app.py", "--server.enableXsrfProtection", "false"]
|
app.py
CHANGED
@@ -175,7 +175,7 @@ if "clean_text" in st.session_state:
|
|
175 |
if st.session_state[gen_button]:
|
176 |
if st.button("Save Podcast to audio file"):
|
177 |
st.session_state.audio = stack_audio_segments(
|
178 |
-
st.session_state.audio, speech_model.
|
179 |
)
|
180 |
sf.write(
|
181 |
"podcast.wav",
|
|
|
175 |
if st.session_state[gen_button]:
|
176 |
if st.button("Save Podcast to audio file"):
|
177 |
st.session_state.audio = stack_audio_segments(
|
178 |
+
st.session_state.audio, speech_model.audio_codec.sr
|
179 |
)
|
180 |
sf.write(
|
181 |
"podcast.wav",
|