Spaces:
Runtime error
Runtime error
File size: 538 Bytes
e1e5071 bcacd51 6efca78 80eae98 6efca78 a05a280 e1e5071 6efca78 5c2b07a 0573f05 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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()
|