import os import gradio as gr HF_KEY = os.environ.get("hf_token") username = os.environ.get("username") password = os.environ.get("password") demo = gr.load("trimble/ConstructibleCopilot", src="spaces", hf_token = HF_KEY) demo.launch(auth=[(username, password)])