Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ from tqdm import tqdm
|
|
31 |
import imageio # Added for final video rendering
|
32 |
|
33 |
# FastRTC imports
|
34 |
-
from fastrtc import WebRTC,
|
35 |
from fastrtc.utils import AdditionalOutputs #, CloseStream
|
36 |
|
37 |
# Original project imports
|
@@ -369,7 +369,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Self-Forcing FastRTC Demo") as dem
|
|
369 |
mode="receive", # Server sends video to client
|
370 |
height=480,
|
371 |
width=832,
|
372 |
-
rtc_configuration=
|
373 |
elem_id="video_stream"
|
374 |
)
|
375 |
|
|
|
31 |
import imageio # Added for final video rendering
|
32 |
|
33 |
# FastRTC imports
|
34 |
+
from fastrtc import WebRTC, get_cloudflare_turn_credentials
|
35 |
from fastrtc.utils import AdditionalOutputs #, CloseStream
|
36 |
|
37 |
# Original project imports
|
|
|
369 |
mode="receive", # Server sends video to client
|
370 |
height=480,
|
371 |
width=832,
|
372 |
+
rtc_configuration=get_cloudflare_turn_credentials(token=os.environ.get('HF_TOKEN')),
|
373 |
elem_id="video_stream"
|
374 |
)
|
375 |
|