Spaces:
Sleeping
Sleeping
Commit
·
b40acb6
1
Parent(s):
375c386
Code splitting
Browse files
ui.py
CHANGED
@@ -3,7 +3,7 @@ from fastapi import FastAPI
|
|
3 |
from shared import DEFAULT_CHANGE_THRESHOLD, DEFAULT_MAX_SPEAKERS, ABSOLUTE_MAX_SPEAKERS
|
4 |
|
5 |
# Replace with your actual space URL when deployed
|
6 |
-
API_WS = "wss://
|
7 |
|
8 |
def build_ui():
|
9 |
"""Build Gradio UI for speaker diarization"""
|
@@ -20,7 +20,7 @@ def build_ui():
|
|
20 |
<i>Click 'Start Listening' to begin…</i>
|
21 |
</div>
|
22 |
<script>
|
23 |
-
const API_WS = 'wss://
|
24 |
let ws, recorder, mediaStream;
|
25 |
|
26 |
async function startStream() {
|
|
|
3 |
from shared import DEFAULT_CHANGE_THRESHOLD, DEFAULT_MAX_SPEAKERS, ABSOLUTE_MAX_SPEAKERS
|
4 |
|
5 |
# Replace with your actual space URL when deployed
|
6 |
+
API_WS = "wss://androidguy-speaker-diarization.hf.space/ws_inference"
|
7 |
|
8 |
def build_ui():
|
9 |
"""Build Gradio UI for speaker diarization"""
|
|
|
20 |
<i>Click 'Start Listening' to begin…</i>
|
21 |
</div>
|
22 |
<script>
|
23 |
+
const API_WS = 'wss://androidguy-speaker-diarization.hf.space/ws_inference';
|
24 |
let ws, recorder, mediaStream;
|
25 |
|
26 |
async function startStream() {
|