aliabd HF staff commited on
Commit
edebae8
1 Parent(s): 04641d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  from os import environ
3
 
4
- hf_token = environ.get("AUTH_TOKEN")
5
 
6
- demo = gr.load(name="spaces/aliabd/private_code", hf_token=hf_token)
7
 
8
  demo.launch()
 
1
  import gradio as gr
2
  from os import environ
3
 
4
+ api_key = environ.get("AUTH_TOKEN")
5
 
6
+ demo = gr.load(name="spaces/aliabd/private_code", api_key=api_key)
7
 
8
  demo.launch()