Spaces:
Sleeping
Sleeping
fixing bug
Browse files- chatbot.py +1 -0
chatbot.py
CHANGED
|
@@ -149,6 +149,7 @@ def render_chatbot(code, output, error):
|
|
| 149 |
# 🔊 Speak
|
| 150 |
speak_btn = st.button(f"🔊 Narrate #{i+1}")
|
| 151 |
if speak_btn:
|
|
|
|
| 152 |
status_placeholder.info("🧠 Generating narration...")
|
| 153 |
bot = CodeAssistantBot()
|
| 154 |
narration = bot.narrate_response(code, output, error, a, st.session_state.chat_summary)
|
|
|
|
| 149 |
# 🔊 Speak
|
| 150 |
speak_btn = st.button(f"🔊 Narrate #{i+1}")
|
| 151 |
if speak_btn:
|
| 152 |
+
status_placeholder = st.empty()
|
| 153 |
status_placeholder.info("🧠 Generating narration...")
|
| 154 |
bot = CodeAssistantBot()
|
| 155 |
narration = bot.narrate_response(code, output, error, a, st.session_state.chat_summary)
|