Preeda commited on
Commit
f682788
·
verified ·
1 Parent(s): c986e36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -4,11 +4,17 @@ import gradio as gr
4
  iface = gr.load("spaces/Preeda/private_test")
5
  # iface = gr.load("spaces/Preeda/stock_auto_update")
6
 
 
 
 
7
  # Replace 'your_token_here' with your actual Hugging Face access token
8
- # hf_token = 'your_token_here'
 
 
 
9
 
10
  # Load the Space with access token
11
- iface = gr.load("spaces/Preeda/private_test", hf_token=HF_TOKEN)
12
 
13
 
14
  iface.launch()
 
4
  iface = gr.load("spaces/Preeda/private_test")
5
  # iface = gr.load("spaces/Preeda/stock_auto_update")
6
 
7
+
8
+ import os
9
+
10
  # Replace 'your_token_here' with your actual Hugging Face access token
11
+ hf_token = os.environ['HF_TOKEN']
12
+
13
+
14
+ # os.environ['HF_TOKEN'] = ".."
15
 
16
  # Load the Space with access token
17
+ iface = gr.load("spaces/Preeda/private_test", hf_token=hf_token)
18
 
19
 
20
  iface.launch()