tonyassi commited on
Commit
c77d21f
·
verified ·
1 Parent(s): 7ec0a48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -10
app.py CHANGED
@@ -1,12 +1,16 @@
1
- import gradio as gr, os
 
2
 
3
- gr.load(
4
- "tonyassi/mgm", # keep the models/ prefix
5
  src="models",
6
- token=os.environ["HF_TOKEN"], # must be non-empty
7
- inputs=gr.Textbox(...),
8
- examples=[...],
9
- title="MGM Film Diffusion",
10
- theme=gr.themes.Base(primary_hue="teal", secondary_hue="teal", neutral_hue="slate"),
11
- description="""by <a href="https://www.tonyassi.com">Tony Assi</a> ..."""
12
- ).launch()
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
 
4
+ gr.load("tonyassi/mgm",
 
5
  src="models",
6
+ hf_token = os.environ.get("HF_TOKEN"),
7
+ inputs=gr.Textbox(label='Prompt (use "mgm film" as keyword)', value='mgm film '),
8
+ examples=[['mgm film megan fox pinup girl'], ['mgm film asap rocky eating in a fancy restaurant, 1950s'], ['mgm film bettie page outside a mansion with two poodles'],['mgm film lady gaga in a limo, neon lights, pet snake']],
9
+ title='MGM Film Diffusion',
10
+ theme = gr.themes.Base(primary_hue="teal",secondary_hue="teal",neutral_hue="slate"),
11
+ description="""
12
+ by [Tony Assi](https://www.tonyassi.com/)
13
+ This app uses the [MGM Film](https://huggingface.co/tonyassi/mgm) Dreambooth model finetuned on SDXL. Please ❤️ this Space.
14
+ I build custom AI apps for companies. <a href="mailto: [email protected]">Email me</a> for business inquiries.
15
+ """
16
+ ).launch()