lampongyuen commited on
Commit
d0d21c4
·
verified ·
1 Parent(s): 7677b8e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+ # Your private Space repository ID
5
+ private_space_repo = "lampongyuen/gradio-app1"
6
+
7
+ # Your Hugging Face API token with access to the private Space (set as a secret in the Space settings)
8
+ hf_token = os.getenv("HF_TOKEN")
9
+
10
+ # Load the Gradio interface of the private Space using the hf_token
11
+ iface = gr.load(private_space_repo, hf_token=hf_token)
12
+
13
+ iface.launch()