public_call / app.py
Preeda's picture
dd
80030d0 verified
Raw History Blame Contribute Delete
448 Bytes
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()