Update app.py
Browse files
app.py
CHANGED
|
@@ -77,14 +77,15 @@ def run_generation(prompt, style_name, files, steps, guidance, width, height, se
|
|
| 77 |
demo = gr.Interface(
|
| 78 |
fn=run_generation,
|
| 79 |
inputs=[
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
|
|
| 88 |
outputs=gr.Image(label="Generated Image"),
|
| 89 |
title="StyleX",
|
| 90 |
description="Generate a stylistic image from a prompt and upload reference images of that style.",
|
|
|
|
| 77 |
demo = gr.Interface(
|
| 78 |
fn=run_generation,
|
| 79 |
inputs=[
|
| 80 |
+
gr.Textbox(label="Prompt", lines=3, placeholder="Describe the image you want"),
|
| 81 |
+
gr.Textbox(label="Style Name", placeholder="Example: cyberpunk"),
|
| 82 |
+
gr.File(file_count="multiple", file_types=["image"], label="Reference Images"),
|
| 83 |
+
gr.Slider(1, 10, value=6, step=1, label="Steps"),
|
| 84 |
+
gr.Slider(1.0, 5.0, value=1.0, step=0.1, label="Guidance"),
|
| 85 |
+
gr.Slider(256, 1024, value=512, step=64, label="Width"),
|
| 86 |
+
gr.Slider(256, 1024, value=512, step=64, label="Height"),
|
| 87 |
+
gr.Textbox(label="Seed (optional)", placeholder="Leave blank for random"),
|
| 88 |
+
],
|
| 89 |
outputs=gr.Image(label="Generated Image"),
|
| 90 |
title="StyleX",
|
| 91 |
description="Generate a stylistic image from a prompt and upload reference images of that style.",
|