Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -333,7 +333,7 @@ async def predict(image):
|
|
333 |
|
334 |
# 為每個品種插入按鈕
|
335 |
button_id = f"Dog {i+1}: More about {breed}"
|
336 |
-
buttons_html += f'<button style="display:block; margin-top:10px;" onclick="handle_button_click(\'{button_id}\')">{breed}</button>'
|
337 |
|
338 |
dogs_info += "</ul>"
|
339 |
# 確保只在這個條件下顯示按鈕
|
@@ -353,6 +353,7 @@ async def predict(image):
|
|
353 |
"""
|
354 |
|
355 |
|
|
|
356 |
|
357 |
|
358 |
if buttons:
|
|
|
333 |
|
334 |
# 為每個品種插入按鈕
|
335 |
button_id = f"Dog {i+1}: More about {breed}"
|
336 |
+
buttons_html += f'<button style="display:inline-block; margin-top:10px;" onclick="handle_button_click(\'{button_id}\')">{breed}</button>'
|
337 |
|
338 |
dogs_info += "</ul>"
|
339 |
# 確保只在這個條件下顯示按鈕
|
|
|
353 |
"""
|
354 |
|
355 |
|
356 |
+
|
357 |
|
358 |
|
359 |
if buttons:
|