Shutupnlearn commited on
Commit
243c2b6
·
1 Parent(s): e7a13f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -16
app.py CHANGED
@@ -1,18 +1,7 @@
1
- import os
2
- import subprocess
3
- import sys
4
 
 
 
5
 
6
- github_username = 'Shutupnlearn'
7
- github_pat = os.environ.get('demo')
8
- repo_url = f"https://{github_username}:{github_pat}@huggingface.co/spaces/Shutupnlearn/planche_demo"
9
-
10
- # Clone the private repository
11
- subprocess.run(["git", "clone", repo_url])
12
-
13
- # Add the cloned repo to the Python path for importing
14
- sys.path.append(os.path.join(os.getcwd(), "planche_demo"))
15
-
16
- # Import and run your app
17
- from planche_demo import app
18
- app.run()
 
1
+ import gradio as gr
 
 
2
 
3
+ # Replace 'your_private_space' with the name of your private Space
4
+ iface = gr.Interface.load("huggingface/planche_demo")
5
 
6
+ if __name__ == "__main__":
7
+ iface.launch()