Update app.py
Browse files
app.py
CHANGED
@@ -187,13 +187,13 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
187 |
sound.export("/home/user/app/audio/audio.wav", format="wav")
|
188 |
|
189 |
if "reference" not in st.session_state:
|
190 |
-
st.session_state.reference =
|
191 |
if "audio" not in st.session_state:
|
192 |
-
st.session_state.audio =
|
193 |
|
194 |
|
195 |
with st.sidebar:
|
196 |
-
choice = st.radio("References and TTS",["Reference" , 'TTS'], index=None)
|
197 |
|
198 |
if choice == 'Reference':
|
199 |
generate_pdf()
|
|
|
187 |
sound.export("/home/user/app/audio/audio.wav", format="wav")
|
188 |
|
189 |
if "reference" not in st.session_state:
|
190 |
+
st.session_state.reference = '/home/user/app/pdf2image/default_output.png'
|
191 |
if "audio" not in st.session_state:
|
192 |
+
st.session_state.audio = "/home/user/app/audio/beep-06.mp3"
|
193 |
|
194 |
|
195 |
with st.sidebar:
|
196 |
+
choice = st.radio("References and TTS",["Reference" , 'TTS'], index=None,)
|
197 |
|
198 |
if choice == 'Reference':
|
199 |
generate_pdf()
|