Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,7 @@ def segmentation(inp):
|
|
42 |
circum = round(circum,2)
|
43 |
b = str(circum) + '\t' + "px"
|
44 |
else:
|
45 |
-
#a = print("No Polynya Detected")
|
46 |
a = "No Polynya Detected"
|
47 |
-
#b = print(f"Circumference of Polynya : 0.0 px")
|
48 |
b = "0.0 px"
|
49 |
|
50 |
return(contoured, a, b)
|
@@ -55,6 +53,8 @@ out2 = gr.Textbox(label = 'Label')
|
|
55 |
out3 = gr.Textbox(label = 'Circumference in Pixel Unit')
|
56 |
|
57 |
interface = gr.Interface(fn = segmentation, inputs = image, outputs = [out1, out2, out3],
|
58 |
-
title= '
|
|
|
|
|
59 |
|
60 |
interface.launch()
|
|
|
42 |
circum = round(circum,2)
|
43 |
b = str(circum) + '\t' + "px"
|
44 |
else:
|
|
|
45 |
a = "No Polynya Detected"
|
|
|
46 |
b = "0.0 px"
|
47 |
|
48 |
return(contoured, a, b)
|
|
|
53 |
out3 = gr.Textbox(label = 'Circumference in Pixel Unit')
|
54 |
|
55 |
interface = gr.Interface(fn = segmentation, inputs = image, outputs = [out1, out2, out3],
|
56 |
+
title= 'Polynya Detection',
|
57 |
+
description= 'Let the system detect if there is a Polynya in your image or not.',
|
58 |
+
share=True)
|
59 |
|
60 |
interface.launch()
|