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()
|