vishwask commited on
Commit
a1aedbb
·
1 Parent(s): 6b16ee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -192,13 +192,17 @@ if prompt := st.chat_input("How can I help you today?"):
192
  st.session_state.audio = False
193
 
194
  with st.sidebar:
195
- if st.radio('Reference') or st.session_state.reference:
 
 
 
196
  st.session_state.reference = True
197
- generate_pdf()
198
- if st.radio(':speaker:') or st.session_state.audio:
 
199
  generate_audio()
200
  st.session_state.audio = True
201
-
202
  st.session_state.messages.append({"role": "assistant", "content": full_response})
203
 
204
 
 
192
  st.session_state.audio = False
193
 
194
  with st.sidebar:
195
+ choice = st.radio("References and TTS",
196
+ ["Reference", "Text-to-Speech"])
197
+
198
+ if choice == 'Reference':
199
  st.session_state.reference = True
200
+ generate_pdf()
201
+
202
+ if choice == ':speaker:':
203
  generate_audio()
204
  st.session_state.audio = True
205
+
206
  st.session_state.messages.append({"role": "assistant", "content": full_response})
207
 
208