forward-demo / app.py
Maxew's picture
Update app.py
0e8f5ce verified
Raw History Blame Contribute Delete
326 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)