Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -870,7 +870,7 @@ if st.session_state["generated_questions"]:
|
|
| 870 |
st.markdown(f"<h4 class='timer-text'>🎙️ {remaining} seconds to answer...</h4>", unsafe_allow_html=True)
|
| 871 |
|
| 872 |
audio_value = st.audio_input("🎤 Tap to record — then stop when done", key=f"audio_{idx}")
|
| 873 |
-
|
| 874 |
wav_path = f"response_{idx}.wav"
|
| 875 |
with open(wav_path, "wb") as f:
|
| 876 |
f.write(audio_value.getbuffer())
|
|
|
|
| 870 |
st.markdown(f"<h4 class='timer-text'>🎙️ {remaining} seconds to answer...</h4>", unsafe_allow_html=True)
|
| 871 |
|
| 872 |
audio_value = st.audio_input("🎤 Tap to record — then stop when done", key=f"audio_{idx}")
|
| 873 |
+
if audio_value:
|
| 874 |
wav_path = f"response_{idx}.wav"
|
| 875 |
with open(wav_path, "wb") as f:
|
| 876 |
f.write(audio_value.getbuffer())
|