demo_bot / app.py
Maxew's picture
Update app.py
d0fe307 verified
Raw History Blame Contribute Delete
339 Bytes
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)