Spaces:
Runtime error
Runtime error
import os | |
os.system("pip uninstall -y gradio") | |
os.system("pip install gradio==3.40.1") | |
import gradio as gr | |
import os | |
# Replace with your private Space's URL | |
private_space_url = "Entreprenerdly/CandleStickScan-Stock-trading-yolov8" | |
# Retrieve the token from environment variables | |
access_token = os.getenv("HF_TOKEN") | |
# Load the private Space using the gr.load() method | |
interface = gr.load(name=private_space_url, src="spaces", hf_token=access_token) | |
# Launch the interface on the specified port | |
interface.launch() |