Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -76,16 +76,17 @@ with gr.Blocks() as demo:
|
|
| 76 |
negative_prompt = gr.Textbox(interactive=True, label="negative_prompt")
|
| 77 |
method = gr.Dropdown(["todo", "tome"], value="todo", label="method", info="Choose Your Desired Method (Default: todo)")
|
| 78 |
height_width = gr.Dropdown([1024, 1536, 2048], value=1024, label="height/width", info="Choose Your Desired Height/Width (Default: 1024)")
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
result = gr.Textbox(label="Result")
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
base_image = gr.Image(label=f"baseline_image", type="pil", interactive=False)
|
| 88 |
output_image = gr.Image(label=f"output_image", type="pil", interactive=False)
|
|
|
|
|
|
|
| 89 |
|
| 90 |
gen = gr.Button("generate")
|
| 91 |
|
|
|
|
| 76 |
negative_prompt = gr.Textbox(interactive=True, label="negative_prompt")
|
| 77 |
method = gr.Dropdown(["todo", "tome"], value="todo", label="method", info="Choose Your Desired Method (Default: todo)")
|
| 78 |
height_width = gr.Dropdown([1024, 1536, 2048], value=1024, label="height/width", info="Choose Your Desired Height/Width (Default: 1024)")
|
| 79 |
+
|
| 80 |
+
with gr.Row():
|
| 81 |
+
guidance_scale = gr.Number(label="guidance_scale", value=7.5, precision=1)
|
| 82 |
+
steps = gr.Number(label="steps", value=20, precision=0)
|
| 83 |
+
seed = gr.Number(label="seed", value=1, precision=0)
|
|
|
|
| 84 |
|
| 85 |
with gr.Row():
|
| 86 |
base_image = gr.Image(label=f"baseline_image", type="pil", interactive=False)
|
| 87 |
output_image = gr.Image(label=f"output_image", type="pil", interactive=False)
|
| 88 |
+
|
| 89 |
+
result = gr.Textbox(label="Result")
|
| 90 |
|
| 91 |
gen = gr.Button("generate")
|
| 92 |
|