Update app.py
Browse files
app.py
CHANGED
@@ -193,15 +193,12 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
193 |
|
194 |
|
195 |
with st.sidebar:
|
196 |
-
choice = st.radio("References and TTS",["Reference" ,
|
197 |
-
|
198 |
-
if choice == 'Reference':
|
199 |
-
st.session_state['audio'] = True
|
200 |
generate_pdf()
|
201 |
st.session_state['reference'] = '/home/user/app/pdf2image/output.png'
|
202 |
st.image(st.session_state['reference'])
|
203 |
-
|
204 |
-
if choice == 'TTS':
|
205 |
st.session_state.reference = True
|
206 |
with open('/home/user/app/audio/audio.mp3','wb') as sound_file:
|
207 |
tts = gTTS(result['result'], lang='en', tld = 'co.in')
|
|
|
193 |
|
194 |
|
195 |
with st.sidebar:
|
196 |
+
choice = st.radio("References and TTS",["Reference & TTS" ], index=None,)
|
197 |
+
if choice == 'Reference & TTS':
|
|
|
|
|
198 |
generate_pdf()
|
199 |
st.session_state['reference'] = '/home/user/app/pdf2image/output.png'
|
200 |
st.image(st.session_state['reference'])
|
201 |
+
|
|
|
202 |
st.session_state.reference = True
|
203 |
with open('/home/user/app/audio/audio.mp3','wb') as sound_file:
|
204 |
tts = gTTS(result['result'], lang='en', tld = 'co.in')
|