Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -108,12 +108,12 @@ import gradio as gr
|
|
108 |
def greet(img):
|
109 |
if check_solarplant_installed_by_image(img):
|
110 |
seg = segment_solar_panel(img)
|
111 |
-
return (seg, '')
|
112 |
# return (seg,
|
113 |
# "車牌: " + '; '.join(lns) + "\n\n" \
|
114 |
# + "類型: "+ check_solarplant_installed_by_image(img, True) + "\n\n" \
|
115 |
# + "狀態:" + check_solarplant_broken(img))
|
116 |
-
return (img, "
|
117 |
|
118 |
iface = gr.Interface(fn=greet, inputs="image", outputs=["image", "text"])
|
119 |
iface.launch()
|
|
|
108 |
def greet(img):
|
109 |
if check_solarplant_installed_by_image(img):
|
110 |
seg = segment_solar_panel(img)
|
111 |
+
return (seg, '嘗試分割太陽能板部分')
|
112 |
# return (seg,
|
113 |
# "車牌: " + '; '.join(lns) + "\n\n" \
|
114 |
# + "類型: "+ check_solarplant_installed_by_image(img, True) + "\n\n" \
|
115 |
# + "狀態:" + check_solarplant_broken(img))
|
116 |
+
return (img, "沒有太陽能板部分分割")
|
117 |
|
118 |
iface = gr.Interface(fn=greet, inputs="image", outputs=["image", "text"])
|
119 |
iface.launch()
|