Spaces:
Runtime error
Runtime error
Commit
·
1a44008
1
Parent(s):
4a882a7
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def get_image_size(image):
|
4 |
-
return f"
|
5 |
|
6 |
input_image = gr.Image(label="Input Image", scale=1, interactive=True)
|
7 |
output_text = gr.Textbox(label="Image Size", max_lines=1, show_copy_button=True, interactive=False)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def get_image_size(image):
|
4 |
+
return f"{image.shape[0]}x{image.shape[1]}"
|
5 |
|
6 |
input_image = gr.Image(label="Input Image", scale=1, interactive=True)
|
7 |
output_text = gr.Textbox(label="Image Size", max_lines=1, show_copy_button=True, interactive=False)
|