freddyaboulton HF Staff commited on
Commit
43420f7
·
1 Parent(s): c9f3240

update code snippet

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 get_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_turn_credentials(token=None)
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)