File size: 408 Bytes
76a1856
 
 
 
 
 
 
6b33e15
76a1856
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
import os

hf_token = os.environ.get('APP_ACCESS_KEY')
env_username = os.environ.get('APP_USERNAME')
env_password = os.environ.get('APP_PASSWORD')

# Load the space 
iface = gr.load(name="AnnaRPT/Heroes-LLM", hf_token=hf_token, src="spaces")

# Queue the interface and launch the application
iface.queue(api_open=False).launch(show_api=False, debug=True, auth=(env_username,env_password))