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))