lampongyuen's picture
Update app.py
a668dc9 verified
raw
history blame
432 Bytes
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")
# Load the Gradio interface of the private Space using the hf_token
iface = gr.load(private_space_repo, hf_token=hf_token)
iface.launch()