Spaces:
Runtime error
Runtime error
Download app.py from AIStockAdvisor/SampleTest: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/spaces/AIStockAdvisor/SampleTest/resolve/main/app.py
- Command line
-
hf download hf://spaces/AIStockAdvisor/SampleTest/app.py
-
curl -L -o app.py https://huggingface.co/spaces/AIStockAdvisor/SampleTest/resolve/main/app.py
538 Bytes
| import os | |
| import gradio as gr | |
| # Get your Hugging Face API token from Space secrets | |
| hf_token = os.environ.get('HF_TOKEN') # Or another secret name you set | |
| # Load the Gradio Blocks from the private Space | |
| # Replace "your-username-or-org" and "your-private-space-name" with your details | |
| iface = gr.load(name="AIStockAdvisor/TestCL", hf_token=hf_token, src='spaces') | |
| # Optional: Disable the API endpoint of the loaded interface | |
| iface.queue(api_open=False).launch(show_api=False) # Or you might just call launch() directly | |
| # iface.launch() | |