Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import cv2
|
|
| 10 |
import numpy as np
|
| 11 |
import av
|
| 12 |
from streamlit_webrtc import webrtc_streamer, VideoProcessorBase, WebRtcMode
|
| 13 |
-
|
| 14 |
|
| 15 |
os.environ["HF_HOME"] = "/tmp/huggingface"
|
| 16 |
os.makedirs("/tmp/huggingface", exist_ok=True)
|
|
@@ -185,9 +185,9 @@ live_unique_letters_placeholder = st.empty()
|
|
| 185 |
webrtc_ctx = webrtc_streamer(
|
| 186 |
key="webrtc_asl",
|
| 187 |
mode=WebRtcMode.SENDRECV,
|
| 188 |
-
rtc_configuration=
|
| 189 |
-
|
| 190 |
-
|
| 191 |
video_processor_factory=SignLanguageVideoProcessor,
|
| 192 |
media_stream_constraints={"video": True, "audio": False},
|
| 193 |
async_processing=True,
|
|
|
|
| 10 |
import numpy as np
|
| 11 |
import av
|
| 12 |
from streamlit_webrtc import webrtc_streamer, VideoProcessorBase, WebRtcMode
|
| 13 |
+
# ClientSettings import removed as it was causing issues, using dict directly for rtc_configuration
|
| 14 |
|
| 15 |
os.environ["HF_HOME"] = "/tmp/huggingface"
|
| 16 |
os.makedirs("/tmp/huggingface", exist_ok=True)
|
|
|
|
| 185 |
webrtc_ctx = webrtc_streamer(
|
| 186 |
key="webrtc_asl",
|
| 187 |
mode=WebRtcMode.SENDRECV,
|
| 188 |
+
rtc_configuration={
|
| 189 |
+
"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]
|
| 190 |
+
}, # Directly providing the dict
|
| 191 |
video_processor_factory=SignLanguageVideoProcessor,
|
| 192 |
media_stream_constraints={"video": True, "audio": False},
|
| 193 |
async_processing=True,
|