Spaces:
Runtime error
Runtime error
File size: 448 Bytes
52b14b1 f682788 c986e36 f00e6f2 14fd8af f00e6f2 14fd8af f00e6f2 f682788 c986e36 9d4cc88 80030d0 c986e36 52b14b1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import gradio as gr
import os
# Replace 'your_token_here' with your actual Hugging Face access token
# hf_token = os.environ['hf_write']
hf_write = os.getenv('hf_write')
print('hf_write = ', hf_write)
# os.environ['HF_TOKEN'] = ".."
# Load the Space with access token
iface = gr.load("spaces/Preeda/private_test", hf_token=hf_write)
# iface = gr.load("spaces/Preeda/stock_auto_update", hf_token=hf_write)
print('OK')
iface.launch()
|