Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -851,7 +851,7 @@ if st.session_state["generated_questions"]:
|
|
| 851 |
)
|
| 852 |
if webrtc_ctx.state.playing:
|
| 853 |
if st.button("⏹️ Stop Recording"):
|
| 854 |
-
|
| 855 |
try:
|
| 856 |
frames = webrtc_ctx.audio_receiver.get_frames(timeout=1)
|
| 857 |
except Exception as e:
|
|
|
|
| 851 |
)
|
| 852 |
if webrtc_ctx.state.playing:
|
| 853 |
if st.button("⏹️ Stop Recording"):
|
| 854 |
+
wav_path = f"response_{idx}.wav"
|
| 855 |
try:
|
| 856 |
frames = webrtc_ctx.audio_receiver.get_frames(timeout=1)
|
| 857 |
except Exception as e:
|