Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -273,4 +273,17 @@ with gr.Blocks() as demo:
|
|
273 |
cancels=[process]
|
274 |
)
|
275 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
demo.launch()
|
|
|
273 |
cancels=[process]
|
274 |
)
|
275 |
|
276 |
+
# 添加范例
|
277 |
+
examples = [
|
278 |
+
["https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth", "", "1,3,128,128", "0,0,0,0"],
|
279 |
+
["https://github.com/Phhofm/models/releases/download/4xNomos8kSC/4xNomos8kSC.pth", "", "1,3,128,128", "0,0,0,0"],
|
280 |
+
["https://github.com/Phhofm/models/releases/download/1xDeJPG/1xDeJPG_SRFormer_light.pth", "", "1,3,128,128", "0,0,0,0"]
|
281 |
+
]
|
282 |
+
gr.Examples(
|
283 |
+
examples=examples,
|
284 |
+
inputs=[input1, input2, shape0_str, shape1_str],
|
285 |
+
outputs=[output, log_textbox],
|
286 |
+
fn=start_process
|
287 |
+
)
|
288 |
+
|
289 |
demo.launch()
|