File size: 431 Bytes
78d7b56
f013247
78d7b56
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()