sugan04 commited on
Commit
fae5abc
·
verified ·
1 Parent(s): b2c1b7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -297,12 +297,9 @@ def segment_image(input_image, conf_threshold=0.25):
297
  q1=suggested[0] if len(suggested)>0 else ""
298
  q2=suggested[1] if len(suggested)>1 else ""
299
  q3=suggested[2] if len(suggested)>2 else ""
300
- return (annotated_image,summary,alert,explanation,
301
- gr.update(visible=True),gr.update(visible=True),
302
- gr.update(value=q1,visible=bool(q1)),
303
- gr.update(value=q2,visible=bool(q2)),
304
- gr.update(value=q3,visible=bool(q3)),
305
- render_chat_html(_chat_history,"en"))
306
 
307
 
308
  def send_message(message, language):
 
297
  q1=suggested[0] if len(suggested)>0 else ""
298
  q2=suggested[1] if len(suggested)>1 else ""
299
  q3=suggested[2] if len(suggested)>2 else ""
300
+ return (annotated_image, summary, alert, explanation,
301
+ gr.update(visible=True), gr.update(visible=True), gr.update(visible=True),
302
+ gr.update(value=q1, visible=bool(q1)),
 
 
 
303
 
304
 
305
  def send_message(message, language):