Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|