jothyanandan commited on
Commit
bef6a9c
·
verified ·
1 Parent(s): 9da1fff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -1,11 +1,16 @@
 
1
  import gradio as gr
2
  import os
3
 
4
- # Fetch your secret Access Token
5
- token = os.environ.get("HF_TOKEN")
 
 
 
 
 
 
 
6
 
7
- # Load your PRIVATE backend into this PUBLIC space
8
- # Replace 'your-username' with your actual HF username
9
- demo = gr.load(name="jothyanandan/image_tools_backend", hf_token=token, src="spaces")
10
 
11
  demo.launch()
 
1
+
2
  import gradio as gr
3
  import os
4
 
5
+ # Get the secret token you created in your HF profile settings
6
+ hf_token = os.environ.get("HF_TOKEN")
7
+
8
+ # Replace 'your-username/your-private-space' with your actual space path
9
+ demo = gr.load(
10
+ name="jothyanandan/image_tools_backend",
11
+ src="spaces",
12
+ hf_token=hf_token
13
+ )
14
 
 
 
 
15
 
16
  demo.launch()