Update app.py
Browse files
app.py
CHANGED
@@ -169,10 +169,6 @@ def inference(secret_token, input_image_b64, prompt, a_prompt, n_prompt, denoise
|
|
169 |
|
170 |
return writeb64(image)
|
171 |
|
172 |
-
title = "Pixel-Aware Stable Diffusion for Real-ISR"
|
173 |
-
description = "Gradio Demo for PASD Real-ISR. To use it, simply upload your image, or click one of the examples to load them."
|
174 |
-
article = "<a href='https://github.com/yangxy/PASD' target='_blank'>Github Repo Pytorch</a>"
|
175 |
-
|
176 |
|
177 |
with gr.Blocks() as demo:
|
178 |
with gr.Column():
|
@@ -192,7 +188,14 @@ with gr.Blocks() as demo:
|
|
192 |
submit_btn = gr.Button("Submit")
|
193 |
with gr.Column():
|
194 |
output_image_b64 = gr.Textbox()
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
submit_btn.click(
|
197 |
fn = inference,
|
198 |
inputs = [
|
|
|
169 |
|
170 |
return writeb64(image)
|
171 |
|
|
|
|
|
|
|
|
|
172 |
|
173 |
with gr.Blocks() as demo:
|
174 |
with gr.Column():
|
|
|
188 |
submit_btn = gr.Button("Submit")
|
189 |
with gr.Column():
|
190 |
output_image_b64 = gr.Textbox()
|
191 |
+
gr.HTML("""
|
192 |
+
<div style="z-index: 100; position: fixed; top: 0px; right: 0px; left: 0px; bottom: 0px; width: 100%; height: 100%; background: white; display: flex; align-items: center; justify-content: center; color: black;">
|
193 |
+
<div style="text-align: center; color: black;">
|
194 |
+
<p style="color: black;">This space is a REST API to programmatically upscale an image.</p>
|
195 |
+
<p style="color: black;">Interested in using it? Please use the <a href="https://huggingface.co/spaces/fffiloni/PASD" target="_blank">original space</a>, thank you!</p>
|
196 |
+
</div>
|
197 |
+
</div>""")
|
198 |
+
|
199 |
submit_btn.click(
|
200 |
fn = inference,
|
201 |
inputs = [
|