Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -22,13 +22,12 @@ with gr.Blocks(css=css) as demo:
|
|
22 |
gr.Markdown(title)
|
23 |
with gr.Row():
|
24 |
prompt = gr.Text(label="Prompt", show_label=False, max_lines=1, placeholder="Enter your prompt", container=False, value="Correct the blur in this image so it is more clear.")
|
25 |
-
negative_prompt = gr.Text(label="Negative Prompt", value="low quality, blurr", max_lines=1, placeholder="Enter a negative prompt")
|
26 |
run_button = gr.Button("Run", scale=0)
|
27 |
with gr.Row():
|
28 |
init_image = gr.Image(label="Input Image", type='pil')
|
29 |
result = gr.Image(label="Result", show_label=False)
|
30 |
gr.on(
|
31 |
-
triggers=[run_button.click, prompt.submit
|
32 |
fn=infer,
|
33 |
inputs=[prompt, init_image],
|
34 |
outputs=[result]
|
|
|
22 |
gr.Markdown(title)
|
23 |
with gr.Row():
|
24 |
prompt = gr.Text(label="Prompt", show_label=False, max_lines=1, placeholder="Enter your prompt", container=False, value="Correct the blur in this image so it is more clear.")
|
|
|
25 |
run_button = gr.Button("Run", scale=0)
|
26 |
with gr.Row():
|
27 |
init_image = gr.Image(label="Input Image", type='pil')
|
28 |
result = gr.Image(label="Result", show_label=False)
|
29 |
gr.on(
|
30 |
+
triggers=[run_button.click, prompt.submit],
|
31 |
fn=infer,
|
32 |
inputs=[prompt, init_image],
|
33 |
outputs=[result]
|