Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -380,7 +380,6 @@ with gr.Blocks(css=css, title="π¨ AI Image Upscaler - Florence-2 + FLUX") as d
|
|
380 |
gr.HTML("<h3>π Results</h3>")
|
381 |
|
382 |
result_slider = ImageSlider(
|
383 |
-
label="Input / Upscaled",
|
384 |
type="pil",
|
385 |
interactive=True,
|
386 |
height=600, # Made larger
|
@@ -404,6 +403,12 @@ with gr.Blocks(css=css, title="π¨ AI Image Upscaler - Florence-2 + FLUX") as d
|
|
404 |
outputs=[result_slider]
|
405 |
)
|
406 |
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
# Custom CSS for slider
|
408 |
gr.HTML("""
|
409 |
<style>
|
@@ -416,6 +421,9 @@ with gr.Blocks(css=css, title="π¨ AI Image Upscaler - Florence-2 + FLUX") as d
|
|
416 |
width: 100% !important;
|
417 |
height: auto !important;
|
418 |
}
|
|
|
|
|
|
|
419 |
</style>
|
420 |
""")
|
421 |
|
|
|
380 |
gr.HTML("<h3>π Results</h3>")
|
381 |
|
382 |
result_slider = ImageSlider(
|
|
|
383 |
type="pil",
|
384 |
interactive=True,
|
385 |
height=600, # Made larger
|
|
|
403 |
outputs=[result_slider]
|
404 |
)
|
405 |
|
406 |
+
gr.HTML("""
|
407 |
+
<div style="margin-top: 2rem; padding: 1rem; background: #f0f0f0; border-radius: 8px;">
|
408 |
+
<p><strong>Note:</strong> This upscaler uses the Flux dev model. Users are responsible for obtaining commercial rights if used commercially under their license.</p>
|
409 |
+
</div>
|
410 |
+
""")
|
411 |
+
|
412 |
# Custom CSS for slider
|
413 |
gr.HTML("""
|
414 |
<style>
|
|
|
421 |
width: 100% !important;
|
422 |
height: auto !important;
|
423 |
}
|
424 |
+
#result_slider .gr-button-tool {
|
425 |
+
display: none !important;
|
426 |
+
}
|
427 |
</style>
|
428 |
""")
|
429 |
|