DawnC commited on
Commit
9618fe4
·
1 Parent(s): 345a03a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -546,14 +546,15 @@ async def predict(image):
546
  button_id = f"Dog {i+1}: More about {breed}"
547
  buttons_html += f'<button class="breed-button" onclick="handle_button_click(\'{button_id}\')">{breed}</button>'
548
  buttons.append(button_id)
549
- buttons_html += '</div>'
 
550
 
551
  else:
552
  dogs_info += "<p>The image is unclear or the breed is not in the dataset. Please upload a clearer image.</p>"
553
 
554
  dogs_info += '</div>'
555
 
556
- dogs_info += buttons_html
557
 
558
  # html_output = f"""
559
  # <style>
 
546
  button_id = f"Dog {i+1}: More about {breed}"
547
  buttons_html += f'<button class="breed-button" onclick="handle_button_click(\'{button_id}\')">{breed}</button>'
548
  buttons.append(button_id)
549
+ buttons_html += '</div
550
+ dogs_info += buttons_html # new
551
 
552
  else:
553
  dogs_info += "<p>The image is unclear or the breed is not in the dataset. Please upload a clearer image.</p>"
554
 
555
  dogs_info += '</div>'
556
 
557
+ # dogs_info += buttons_html
558
 
559
  # html_output = f"""
560
  # <style>