lampongyuen commited on
Commit
c79d7f7
·
verified ·
1 Parent(s): 0a5bad5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,7 +8,8 @@ private_space_repo = "lampongyuen/gradio-app1"
8
  # Your Hugging Face API token with access to the private Space (set as a secret in the Space settings)
9
  hf_token = os.getenv("HF_TOKEN")
10
 
11
- # Load the Gradio interface of the private Space using the hf_token
12
- iface = gr.load(private_space_repo, token=hf_token)
13
 
14
  iface.launch()
 
 
8
  # Your Hugging Face API token with access to the private Space (set as a secret in the Space settings)
9
  hf_token = os.getenv("HF_TOKEN")
10
 
11
+ # Specify src="spaces" and pass hf_token for authentication
12
+ iface = gr.load(private_space_repo, src="spaces", hf_token=hf_token)
13
 
14
  iface.launch()
15
+