import gradio as gr import os hf_token = os.getenv('HF_token') iface = gr.load('tripsbyai/search_api', src='spaces', api_key=hf_token) iface.launch()