Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,11 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
gr.
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 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: tony.assi.media@gmail.com">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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|