Update app.py
Browse files
app.py
CHANGED
|
@@ -426,13 +426,13 @@ def test_single_image( input_image):
|
|
| 426 |
return output_image
|
| 427 |
|
| 428 |
|
| 429 |
-
uploaded_image_data = gr.components.Image(type="pil", label="Upload Image")
|
| 430 |
# with gr.Column(scale=2, min_width=400):
|
| 431 |
-
output = gr.components.Image(type="pil", label="
|
| 432 |
|
| 433 |
|
| 434 |
# Deploy the interface
|
| 435 |
gr.Interface(test_single_image, inputs=uploaded_image_data , outputs=output,
|
| 436 |
-
title="Image Super-Resolution",
|
| 437 |
-
description="Upload
|
| 438 |
).launch()
|
|
|
|
| 426 |
return output_image
|
| 427 |
|
| 428 |
|
| 429 |
+
uploaded_image_data = gr.components.Image(type="pil", label="Upload Medical Image(Spine)")
|
| 430 |
# with gr.Column(scale=2, min_width=400):
|
| 431 |
+
output = gr.components.Image(type="pil", label="Enhanced medical image")
|
| 432 |
|
| 433 |
|
| 434 |
# Deploy the interface
|
| 435 |
gr.Interface(test_single_image, inputs=uploaded_image_data , outputs=output,
|
| 436 |
+
title="Medical Image Super-Resolution with GAN",
|
| 437 |
+
description="Upload a medical image to see it enhanced. This model is trained on 22,352 low-resolution (LR) and high-resolution (HR) medical images for 64 epochs, followed by 16 fine-tuning epochs. The enlarged image is 4 times the original size."
|
| 438 |
).launch()
|