Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,10 +55,6 @@ def inference(image, size):
|
|
55 |
return result
|
56 |
|
57 |
|
58 |
-
title = "Face Real ESRGAN UpScale: 2x 4x 8x"
|
59 |
-
description = "This is an unofficial demo for Real-ESRGAN. Scales the resolution of a photo. This model shows better results on faces compared to the original version.<br>Telegram BOT: https://t.me/restoration_photo_bot"
|
60 |
-
article = "<div style='text-align: center;'>Twitter <a href='https://twitter.com/DoEvent' target='_blank'>Max Skobeev</a> | <a href='https://huggingface.co/sberbank-ai/Real-ESRGAN' target='_blank'>Model card</a><div>"
|
61 |
-
|
62 |
|
63 |
gr.Interface(inference,
|
64 |
[gr.Image(type="pil"),
|
@@ -67,12 +63,5 @@ gr.Interface(inference,
|
|
67 |
value="2x",
|
68 |
label="Resolution model")],
|
69 |
gr.Image(type="pil", label="Output"),
|
70 |
-
|
71 |
-
description=description,
|
72 |
-
article=article,
|
73 |
-
examples=[["groot.jpeg", "2x"]],
|
74 |
-
flagging_mode="never",
|
75 |
-
cache_mode="lazy",
|
76 |
-
delete_cache=(44000, 44000),
|
77 |
-
).queue(api_open=True).launch(show_error=True, show_api=True)
|
78 |
|
|
|
55 |
return result
|
56 |
|
57 |
|
|
|
|
|
|
|
|
|
58 |
|
59 |
gr.Interface(inference,
|
60 |
[gr.Image(type="pil"),
|
|
|
63 |
value="2x",
|
64 |
label="Resolution model")],
|
65 |
gr.Image(type="pil", label="Output"),
|
66 |
+
).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|