Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit ·
43420f7
1
Parent(s): c9f3240
update code snippet
Browse files
app.py
CHANGED
|
@@ -91,12 +91,12 @@ To get your TURN credentials, run the following code:
|
|
| 91 |
|
| 92 |
|
| 93 |
```python
|
| 94 |
-
from gradio_webrtc import
|
| 95 |
|
| 96 |
|
| 97 |
# Pass a valid access token for your Hugging Face account
|
| 98 |
# or set the HF_TOKEN environment variable
|
| 99 |
-
credentials =
|
| 100 |
|
| 101 |
with gr.Blcocks() as demo:
|
| 102 |
webrtc = WebRTC(rtc_configuration=credentials)
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
```python
|
| 94 |
+
from gradio_webrtc import get_hf_turn_credentials, WebRTC
|
| 95 |
|
| 96 |
|
| 97 |
# Pass a valid access token for your Hugging Face account
|
| 98 |
# or set the HF_TOKEN environment variable
|
| 99 |
+
credentials = get_hf_turn_credentials(token=None)
|
| 100 |
|
| 101 |
with gr.Blcocks() as demo:
|
| 102 |
webrtc = WebRTC(rtc_configuration=credentials)
|