Spaces:
Runtime error
Runtime error
File size: 518 Bytes
33a7dd7 869a494 33a7dd7 78d7b56 0352314 78d7b56 0352314 78d7b56 0352314 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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() |