Spaces:
Running on Zero
Running on Zero
Alexander Bagus commited on
Commit ·
ade095d
1
Parent(s): 18fbc8b
add Instructions
Browse files- app.py +2 -0
- static/footer.md +9 -16
app.py
CHANGED
|
@@ -49,6 +49,8 @@ def generate(
|
|
| 49 |
if not prompt.strip():
|
| 50 |
raise gr.Error("Please enter a prompt.")
|
| 51 |
|
|
|
|
|
|
|
| 52 |
# Handle seed
|
| 53 |
if random_seed:
|
| 54 |
new_seed = random.randint(1, 1000000)
|
|
|
|
| 49 |
if not prompt.strip():
|
| 50 |
raise gr.Error("Please enter a prompt.")
|
| 51 |
|
| 52 |
+
print("prompt: ", prompt)
|
| 53 |
+
|
| 54 |
# Handle seed
|
| 55 |
if random_seed:
|
| 56 |
new_seed = random.randint(1, 1000000)
|
static/footer.md
CHANGED
|
@@ -1,28 +1,21 @@
|
|
| 1 |
-
##
|
| 2 |
-
-
|
| 3 |
-
- Press "Generate
|
| 4 |
-
- After a moment, your LoRA will be ready to download.
|
| 5 |
-
- Press "Generate image" to use LoRA above.
|
| 6 |
-
The generated image will have similar style as the sample images you uploaded.
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
-
**
|
| 11 |
|
| 12 |
## For ComfyUI
|
| 13 |
You can get the ComfyUI version here: <https://huggingface.co/Comfy-Org/z_image>
|
| 14 |
|
| 15 |
-
## Question and Answer
|
| 16 |
-
**What can this app do?**
|
| 17 |
-
This demo helps you make new pictures that look like your example pictures, using a LoRA.
|
| 18 |
-
|
| 19 |
## Features
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
|
| 24 |
## Speed
|
| 25 |
-
- Image generation takes about
|
| 26 |
|
| 27 |
## References
|
| 28 |
- **Tongyi-MAI**: <https://huggingface.co/Tongyi-MAI>
|
|
|
|
| 1 |
+
## Instructions
|
| 2 |
+
- Input your prompt or choose one from the examples.
|
| 3 |
+
- Press "Generate".
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
After a moment, your image will be generated.
|
| 6 |
|
| 7 |
+
**If you like the result, please hit the like button! 😄**
|
| 8 |
|
| 9 |
## For ComfyUI
|
| 10 |
You can get the ComfyUI version here: <https://huggingface.co/Comfy-Org/z_image>
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
## Features
|
| 13 |
+
- Excellent prompt adherence.
|
| 14 |
+
- Generates images with text.
|
| 15 |
+
- Good aesthetic results.
|
| 16 |
|
| 17 |
## Speed
|
| 18 |
+
- Image generation takes about 28 seconds (28 steps, 1024x1024 resolution).
|
| 19 |
|
| 20 |
## References
|
| 21 |
- **Tongyi-MAI**: <https://huggingface.co/Tongyi-MAI>
|