Spaces:
Runtime error
Runtime error
Commit
·
6da542c
1
Parent(s):
c826e93
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
examples = [
|
| 4 |
+
[
|
| 5 |
+
'The spirit of a tamagotchi wandering in the city of Paris',
|
| 6 |
+
# 4,
|
| 7 |
+
# 45,
|
| 8 |
+
# 7.5,
|
| 9 |
+
# 1024,
|
| 10 |
+
],
|
| 11 |
+
[
|
| 12 |
+
'A delicious ceviche cheesecake slice',
|
| 13 |
+
# 4,
|
| 14 |
+
# 45,
|
| 15 |
+
# 7,
|
| 16 |
+
# 1024,
|
| 17 |
+
],
|
| 18 |
+
[
|
| 19 |
+
'A pao de queijo foodcart in front of a japanese castle',
|
| 20 |
+
# 4,
|
| 21 |
+
# 45,
|
| 22 |
+
# 7,
|
| 23 |
+
# 1024,
|
| 24 |
+
],
|
| 25 |
+
[
|
| 26 |
+
'alone in the amusement park by Edward Hopper',
|
| 27 |
+
# 4,
|
| 28 |
+
# 45,
|
| 29 |
+
# 7,
|
| 30 |
+
# 1024,
|
| 31 |
+
],
|
| 32 |
+
[
|
| 33 |
+
"A large cabin on top of a sunny mountain in the style of Dreamworks, artstation",
|
| 34 |
+
# 4,
|
| 35 |
+
# 45,
|
| 36 |
+
# 7,
|
| 37 |
+
# 1024,
|
| 38 |
+
],
|
| 39 |
+
]
|
| 40 |
+
|
| 41 |
+
with gr.Blocks(theme="Base") as mj:
|
| 42 |
+
gr.HTML(value="<h1><center>⛵️ Midjourney-mini</center></h1>")
|
| 43 |
+
|
| 44 |
+
gr.load("models/midjourney-community/midjourney-mini", description="Generate images using the Midjourney-mini model!",examples=examples)
|
| 45 |
+
|
| 46 |
+
mj.launch(show_api=False)
|