File size: 439 Bytes
d0d21c4
 
a668dc9
 
d0d21c4
 
 
 
 
 
c79d7f7
 
d0d21c4
 
c79d7f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
import os
from dotenv import load_dotenv
load_dotenv
# Your private Space repository ID
private_space_repo = "lampongyuen/gradio-app1"

# Your Hugging Face API token with access to the private Space (set as a secret in the Space settings)
hf_token = os.getenv("HF_TOKEN")

# Specify src="spaces" and pass hf_token for authentication
iface = gr.load(private_space_repo, src="spaces", hf_token=hf_token)

iface.launch()