Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
import gradio as gr
|
5 |
import colorsys
|
6 |
|
7 |
-
from fastrtc import WebRTC
|
8 |
|
9 |
def video_generation_handler(prompt):
|
10 |
num_frames = 120
|
@@ -68,6 +68,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Dummy FastRTC Demo") as demo:
|
|
68 |
modality="video",
|
69 |
mode="receive",
|
70 |
height=480,
|
|
|
71 |
)
|
72 |
|
73 |
webrtc_output.stream(
|
|
|
4 |
import gradio as gr
|
5 |
import colorsys
|
6 |
|
7 |
+
from fastrtc import WebRTC, get_turn_credentials
|
8 |
|
9 |
def video_generation_handler(prompt):
|
10 |
num_frames = 120
|
|
|
68 |
modality="video",
|
69 |
mode="receive",
|
70 |
height=480,
|
71 |
+
rtc_configuration=get_turn_credentials(),
|
72 |
)
|
73 |
|
74 |
webrtc_output.stream(
|