Spaces:
Sleeping
Sleeping
Commit
·
98185ad
1
Parent(s):
876be23
Revert
Browse files
app.py
CHANGED
|
@@ -911,21 +911,6 @@ def create_interface():
|
|
| 911 |
# Auto-refresh status every 2 seconds
|
| 912 |
status_timer = gr.Timer(2)
|
| 913 |
status_timer.tick(refresh_status, outputs=[status_output])
|
| 914 |
-
|
| 915 |
-
# Connect the WebRTC component to our processing function
|
| 916 |
-
def process_webrtc_audio(audio_data):
|
| 917 |
-
if audio_data is not None and diarization_system.is_running:
|
| 918 |
-
try:
|
| 919 |
-
# Feed audio to our diarization system
|
| 920 |
-
diarization_system.feed_audio(audio_data)
|
| 921 |
-
except Exception as e:
|
| 922 |
-
logger.error(f"Error processing WebRTC audio: {e}")
|
| 923 |
-
return get_conversation()
|
| 924 |
-
|
| 925 |
-
audio_component.stream(
|
| 926 |
-
fn=process_webrtc_audio,
|
| 927 |
-
outputs=[conversation_output]
|
| 928 |
-
)
|
| 929 |
|
| 930 |
return interface
|
| 931 |
|
|
|
|
| 911 |
# Auto-refresh status every 2 seconds
|
| 912 |
status_timer = gr.Timer(2)
|
| 913 |
status_timer.tick(refresh_status, outputs=[status_output])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 914 |
|
| 915 |
return interface
|
| 916 |
|