test / app.py
Entreprenerdly's picture
Update app.py
f013247 verified
raw
history blame
No virus
431 Bytes
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()