Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -292,16 +292,17 @@ with gr.Blocks(title="Texture Super-Resolution") as demo:
|
|
292 |
)
|
293 |
buffer.seek(0)
|
294 |
return buffer
|
295 |
-
|
296 |
output_image = gr.Image(
|
297 |
label="Generated Image",
|
298 |
type="pil",
|
299 |
format="png",
|
300 |
elem_id="output_texture",
|
301 |
-
|
302 |
-
|
303 |
)
|
304 |
|
|
|
305 |
# Add examples
|
306 |
gr.Examples(
|
307 |
examples=EXAMPLES,
|
@@ -353,8 +354,7 @@ with gr.Blocks(title="Texture Super-Resolution") as demo:
|
|
353 |
demo.config = gr.Config(
|
354 |
png_quality=100,
|
355 |
png_compression=0,
|
356 |
-
file_types=["png"]
|
357 |
-
default_enabled_tools=["download"]
|
358 |
)
|
359 |
|
360 |
if __name__ == "__main__":
|
|
|
292 |
)
|
293 |
buffer.seek(0)
|
294 |
return buffer
|
295 |
+
|
296 |
output_image = gr.Image(
|
297 |
label="Generated Image",
|
298 |
type="pil",
|
299 |
format="png",
|
300 |
elem_id="output_texture",
|
301 |
+
streaming=False,
|
302 |
+
show_download_button=True
|
303 |
)
|
304 |
|
305 |
+
|
306 |
# Add examples
|
307 |
gr.Examples(
|
308 |
examples=EXAMPLES,
|
|
|
354 |
demo.config = gr.Config(
|
355 |
png_quality=100,
|
356 |
png_compression=0,
|
357 |
+
file_types=["png"]
|
|
|
358 |
)
|
359 |
|
360 |
if __name__ == "__main__":
|