Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
-
import gradio as gr
|
|
|
2 |
|
3 |
-
gr.load(
|
4 |
-
"tonyassi/mgm", # keep the models/ prefix
|
5 |
src="models",
|
6 |
-
|
7 |
-
inputs=gr.Textbox(
|
8 |
-
examples=[
|
9 |
-
title=
|
10 |
-
theme=gr.themes.Base(primary_hue="teal",
|
11 |
-
description="""
|
12 |
-
|
|
|
|
|
|
|
|
|
|
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()
|