File size: 409 Bytes
b3969f5
 
 
 
cc765d2
b3969f5
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr, os

gr.load(
    "models/tonyassi/mgm",          # keep the models/ prefix
    token=os.environ["HF_TOKEN"],  # must be non-empty
    inputs=gr.Textbox(...),
    examples=[...],
    title="MGM Film Diffusion",
    theme=gr.themes.Base(primary_hue="teal", secondary_hue="teal", neutral_hue="slate"),
    description="""by <a href="https://www.tonyassi.com">Tony Assi</a> ..."""
).launch()