Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -321,11 +321,10 @@ async def predict(image):
|
|
321 |
|
322 |
# 在每個品種之後添加按鈕
|
323 |
button_id = f"Dog {i+1}: More about {breed}"
|
324 |
-
|
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>"
|