tonyassi commited on
Commit
b3969f5
·
verified ·
1 Parent(s): 58dc33d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -20
app.py CHANGED
@@ -1,20 +1,11 @@
1
- import gradio as gr
2
- import os
3
-
4
- print("HF_TOKEN set?", bool(os.environ.get("HF_TOKEN")))
5
-
6
- gr.load("tonyassi/mgm",
7
- src="models",
8
- hf_token = os.environ.get("HF_TOKEN"),
9
- inputs=gr.Textbox(label='Prompt (use "mgm film" as keyword)', value='mgm film '),
10
- 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']],
11
- title='MGM Film Diffusion',
12
- theme = gr.themes.Base(primary_hue="teal",secondary_hue="teal",neutral_hue="slate"),
13
- description="""
14
- by [Tony Assi](https://www.tonyassi.com/)
15
-
16
- This app uses the [MGM Film](https://huggingface.co/tonyassi/mgm) Dreambooth model finetuned on SDXL. Please ❤️ this Space.
17
-
18
- I build custom AI apps for companies. <a href="mailto: [email protected]">Email me</a> for business inquiries.
19
- """
20
- ).launch()
 
1
+ import gradio as gr, os
2
+
3
+ gr.load(
4
+ "models/tonyassi/mgm", # keep the models/ prefix
5
+ hf_token=os.environ["HF_TOKEN"], # must be non-empty
6
+ inputs=gr.Textbox(...),
7
+ examples=[...],
8
+ title="MGM Film Diffusion",
9
+ theme=gr.themes.Base(primary_hue="teal", secondary_hue="teal", neutral_hue="slate"),
10
+ description="""by <a href="https://www.tonyassi.com">Tony Assi</a> ..."""
11
+ ).launch()