DawnC commited on
Commit
5846f0a
·
1 Parent(s): 2f1738c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -321,11 +321,10 @@ async def predict(image):
321
 
322
  # 在每個品種之後添加按鈕
323
  button_id = f"Dog {i+1}: More about {breed}"
324
- buttons_html += f'<button class="breed-button" style="margin-right: 5px;" onclick="handle_button_click(\'{button_id}\')">{breed}</button>'
325
  buttons.append(button_id)
326
 
327
  dogs_info += "</ul>"
328
- dogs_info += f'<div class="breed-buttons">{buttons_html}</div>' # 把按鈕放到當前品種描述之後
329
 
330
  else:
331
  dogs_info += "<p>The image is unclear or the breed is not in the dataset. Please upload a clearer image.</p>"
 
321
 
322
  # 在每個品種之後添加按鈕
323
  button_id = f"Dog {i+1}: More about {breed}"
324
+ dogs_info += f'<button class="breed-button" style="margin-top: 5px;" onclick="handle_button_click(\'{button_id}\')">{breed}</button>'
325
  buttons.append(button_id)
326
 
327
  dogs_info += "</ul>"
 
328
 
329
  else:
330
  dogs_info += "<p>The image is unclear or the breed is not in the dataset. Please upload a clearer image.</p>"