Spaces:
Sleeping
Sleeping
zhiweili
commited on
Commit
·
956c1ae
1
Parent(s):
5b7edf2
fix gr.Blocks
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def image_to_image(input_image, prompt, guidance_scale, num_inference_steps):
|
|
| 22 |
|
| 23 |
return output_image
|
| 24 |
|
| 25 |
-
with gr.
|
| 26 |
input_image = gr.Image(label="Input Image")
|
| 27 |
prompt = gr.Textbox(lines=3, label="Prompt")
|
| 28 |
guidance_scale = gr.Slider(minimum=0, maximum=1, default=0.75, label="Guidance Scale")
|
|
|
|
| 22 |
|
| 23 |
return output_image
|
| 24 |
|
| 25 |
+
with gr.Blocks() as grApp:
|
| 26 |
input_image = gr.Image(label="Input Image")
|
| 27 |
prompt = gr.Textbox(lines=3, label="Prompt")
|
| 28 |
guidance_scale = gr.Slider(minimum=0, maximum=1, default=0.75, label="Guidance Scale")
|