Spaces:
Runtime error
Runtime error
Download app.py from Preeda/public_call: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/spaces/Preeda/public_call/resolve/main/app.py
- Command line
-
hf download hf://spaces/Preeda/public_call/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Preeda/public_call/resolve/main/app.py
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() | |