import os import gradio as gr read_key = os.environ.get('hf_space_api_key', None) with gr.Blocks() as demo: gr.load("Wassim/youtube-assistant", hf_token=read_key, src="spaces") demo.launch(max_threads=10)