Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -642,24 +642,24 @@ with gr.Blocks(title="Klarity") as demo:
|
|
| 642 |
Klarity
|
| 643 |
</h1>
|
| 644 |
<p style="text-align:center;margin:0 0 .6rem;color:#a0a0a0;font-size:.95rem;line-height:1.5;">
|
| 645 |
-
AI-Powered Image
|
| 646 |
</p>
|
| 647 |
<p style="text-align:center;margin:0 0 .4rem;color:#666;font-size:.82rem;">
|
| 648 |
-
Lite mode · For the full experience with Heavy models and GPU
|
| 649 |
<a href="https://github.com/HAKORADev/Klarity" target="_blank" rel="noopener" style="color:#4CAF50;">desktop app</a>.
|
| 650 |
</p>
|
| 651 |
"""
|
| 652 |
)
|
| 653 |
gr.Markdown("---")
|
| 654 |
|
| 655 |
-
upload = gr.File(label="Upload Image
|
| 656 |
|
| 657 |
file_info_md = gr.Markdown("", elem_id="file-info")
|
| 658 |
|
| 659 |
mode_dd = gr.Dropdown(
|
| 660 |
-
|
| 661 |
label="Processing Mode",
|
| 662 |
-
value=
|
| 663 |
interactive=True,
|
| 664 |
)
|
| 665 |
|
|
|
|
| 642 |
Klarity
|
| 643 |
</h1>
|
| 644 |
<p style="text-align:center;margin:0 0 .6rem;color:#a0a0a0;font-size:.95rem;line-height:1.5;">
|
| 645 |
+
AI-Powered Image Restoration · Denoise, Deblur & Upscale
|
| 646 |
</p>
|
| 647 |
<p style="text-align:center;margin:0 0 .4rem;color:#666;font-size:.82rem;">
|
| 648 |
+
Lite mode · For the full experience with <b>Video Support</b>, Heavy models and GPU, see the
|
| 649 |
<a href="https://github.com/HAKORADev/Klarity" target="_blank" rel="noopener" style="color:#4CAF50;">desktop app</a>.
|
| 650 |
</p>
|
| 651 |
"""
|
| 652 |
)
|
| 653 |
gr.Markdown("---")
|
| 654 |
|
| 655 |
+
upload = gr.File(label="Upload Image", file_types=["image"])
|
| 656 |
|
| 657 |
file_info_md = gr.Markdown("", elem_id="file-info")
|
| 658 |
|
| 659 |
mode_dd = gr.Dropdown(
|
| 660 |
+
IMAGE_MODES,
|
| 661 |
label="Processing Mode",
|
| 662 |
+
value=IMAGE_MODES[0],
|
| 663 |
interactive=True,
|
| 664 |
)
|
| 665 |
|