import gradio as gr import os space_path = os.environ.get('space_path') space_key = os.environ.get('read_token') theme = gr.themes.Default( primary_hue="green", ) with gr.Blocks(fill_height=True, theme=theme) as demo: iface = gr.load(name=space_path, hf_token=space_key, src='spaces') demo.launch(show_api=False)