Spaces:
Sleeping
Sleeping
Commit ·
ec21657
1
Parent(s): 2975bc5
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,33 @@ def video_frame_callback(frame):
|
|
| 12 |
return frame
|
| 13 |
|
| 14 |
|
| 15 |
-
webrtc_streamer(key="example"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
st.markdown('<h1 style="color:black;">BDI Image classification model</h1>', unsafe_allow_html=True)
|
| 18 |
learn = load_learner('export (5).pkl')
|
|
|
|
| 12 |
return frame
|
| 13 |
|
| 14 |
|
| 15 |
+
webrtc_streamer(key="example",rtc_configuration={ # Add this config
|
| 16 |
+
"iceServers": [
|
| 17 |
+
{
|
| 18 |
+
"urls": "stun:stun.relay.metered.ca:80",
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"urls": "turn:a.relay.metered.ca:80",
|
| 22 |
+
"username": "1569e470fe2a2afdb9e2b963",
|
| 23 |
+
"credential": "EG59c3tmBQzU7mMw",
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"urls": "turn:a.relay.metered.ca:80?transport=tcp",
|
| 27 |
+
"username": "1569e470fe2a2afdb9e2b963",
|
| 28 |
+
"credential": "EG59c3tmBQzU7mMw",
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"urls": "turn:a.relay.metered.ca:443",
|
| 32 |
+
"username": "1569e470fe2a2afdb9e2b963",
|
| 33 |
+
"credential": "EG59c3tmBQzU7mMw",
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"urls": "turn:a.relay.metered.ca:443?transport=tcp",
|
| 37 |
+
"username": "1569e470fe2a2afdb9e2b963",
|
| 38 |
+
"credential": "EG59c3tmBQzU7mMw",
|
| 39 |
+
},
|
| 40 |
+
]
|
| 41 |
+
})
|
| 42 |
|
| 43 |
st.markdown('<h1 style="color:black;">BDI Image classification model</h1>', unsafe_allow_html=True)
|
| 44 |
learn = load_learner('export (5).pkl')
|