import gradio as gr import os hf_token = os.environ['GRADIO_API_KEY'] iface = gr.load(name="XibinBayesZhou/RAG", hf_token=hf_token, src="spaces") iface.queue(api_open=False).launch(show_api=False)