npc0 commited on
Commit
af5339f
·
1 Parent(s): 2eb8548

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()