File size: 339 Bytes
2523055 c034cb5 2523055 dfafc43 cf70a96 dfafc43 d0fe307 | 1 2 3 4 5 6 7 8 9 10 11 12 | 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, show_error=True) |