import os import gradio as gr # Fetch your secret read token securely from the environment hf_token = os.environ.get("HF_TOKEN") # Load the private space dynamically demo = gr.load( name="starphy/CashVan", src="spaces", token=hf_token ) # Gradio 6.0 fix: Remove 'show_api=False' entirely if __name__ == "__main__": demo.queue().launch()