Bonosa2 commited on
Commit
ed2ab85
Β·
verified Β·
1 Parent(s): c5c21c9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -156,7 +156,10 @@ if st.button("πŸ” Summarize"):
156
  if url:
157
  context += f"Summarize this page: {url}\n\n"
158
 
159
- context += f"{tone_prompt}\n\n"
 
 
 
160
 
161
  if query.strip():
162
  context += f"Now answer this in bullet points:\n{query}"
@@ -200,9 +203,7 @@ if st.button("πŸ” Summarize"):
200
  # Output
201
  if st.session_state.answer:
202
  st.subheader("πŸ“œ Answer")
203
- st.success(st.session_state.answer) # <- green background box
204
-
205
- st.success("βœ… Summary ready and audio generated!")
206
 
207
  if st.session_state.audio_key:
208
  audio_path = os.path.join(AUDIO_DIR, f"{st.session_state.audio_key}.mp3")
 
156
  if url:
157
  context += f"Summarize this page: {url}\n\n"
158
 
159
+ context += (
160
+ "You are a voice assistant with the following tone:\n"
161
+ f"{tone_prompt}\n\n"
162
+ )
163
 
164
  if query.strip():
165
  context += f"Now answer this in bullet points:\n{query}"
 
203
  # Output
204
  if st.session_state.answer:
205
  st.subheader("πŸ“œ Answer")
206
+ st.success(st.session_state.answer)
 
 
207
 
208
  if st.session_state.audio_key:
209
  audio_path = os.path.join(AUDIO_DIR, f"{st.session_state.audio_key}.mp3")