Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -122,11 +122,11 @@ def inference(input_image, prompt, a_prompt, n_prompt, denoise_steps, upscale, a
|
|
122 |
title = "Pixel-Aware Stable Diffusion for Real-ISR"
|
123 |
description = "Gradio Demo for PASD Real-ISR. To use it, simply upload your image, or click one of the examples to load them."
|
124 |
article = "<p style='text-align: center'><a href='https://github.com/yangxy/PASD' target='_blank'>Github Repo Pytorch</a></p>"
|
125 |
-
examples=[['samples/27d38eeb2dbbe7c9.png'],['samples/629e4da70703193b.png']]
|
126 |
|
127 |
demo = gr.Interface(
|
128 |
fn=inference,
|
129 |
-
inputs=[gr.Image(type="
|
130 |
gr.Textbox(label="Prompt", value="Asian"),
|
131 |
gr.Textbox(label="Added Prompt", value='clean, high-resolution, 8k, best quality, masterpiece'),
|
132 |
gr.Textbox(label="Negative Prompt",value='dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality'),
|
@@ -138,7 +138,6 @@ demo = gr.Interface(
|
|
138 |
outputs=gr.Image(type="pil"),
|
139 |
title=title,
|
140 |
description=description,
|
141 |
-
article=article
|
142 |
-
examples=examples).queue(concurrency_count=1)
|
143 |
|
144 |
demo.launch()
|
|
|
122 |
title = "Pixel-Aware Stable Diffusion for Real-ISR"
|
123 |
description = "Gradio Demo for PASD Real-ISR. To use it, simply upload your image, or click one of the examples to load them."
|
124 |
article = "<p style='text-align: center'><a href='https://github.com/yangxy/PASD' target='_blank'>Github Repo Pytorch</a></p>"
|
125 |
+
#examples=[['samples/27d38eeb2dbbe7c9.png'],['samples/629e4da70703193b.png']]
|
126 |
|
127 |
demo = gr.Interface(
|
128 |
fn=inference,
|
129 |
+
inputs=[gr.Image(type="filepath", sources=["upload"]),
|
130 |
gr.Textbox(label="Prompt", value="Asian"),
|
131 |
gr.Textbox(label="Added Prompt", value='clean, high-resolution, 8k, best quality, masterpiece'),
|
132 |
gr.Textbox(label="Negative Prompt",value='dotted, noise, blur, lowres, oversmooth, longbody, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality'),
|
|
|
138 |
outputs=gr.Image(type="pil"),
|
139 |
title=title,
|
140 |
description=description,
|
141 |
+
article=article).queue(concurrency_count=1)
|
|
|
142 |
|
143 |
demo.launch()
|