Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Load the Space with access token
|
| 11 |
-
iface = gr.load("spaces/Preeda/private_test", 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()
|