Spaces:
Running
on
Zero
Running
on
Zero
Update html_templates.py
Browse files- html_templates.py +0 -18
html_templates.py
CHANGED
@@ -50,24 +50,6 @@ def format_warning_html(message: str) -> str:
|
|
50 |
</div>
|
51 |
'''
|
52 |
|
53 |
-
|
54 |
-
def format_error_message(color: str, index: int) -> str:
|
55 |
-
"""Format error message when confidence is too low."""
|
56 |
-
return f'''
|
57 |
-
<div class="dog-info-card" style="border-left: 8px solid {color};">
|
58 |
-
<div class="dog-info-header" style="background-color: {color}10;">
|
59 |
-
<span class="dog-label" style="color: {color};">Dog {index}</span>
|
60 |
-
</div>
|
61 |
-
<div class="breed-info">
|
62 |
-
<div class="warning-message">
|
63 |
-
<span class="icon">⚠️</span>
|
64 |
-
The image is unclear or the breed is not in the dataset. Please upload a clearer image.
|
65 |
-
</div>
|
66 |
-
</div>
|
67 |
-
</div>
|
68 |
-
'''
|
69 |
-
|
70 |
-
|
71 |
def format_unknown_breed_message(color: str, index: int) -> str:
|
72 |
"""
|
73 |
當狗的品種無法被辨識時(信心度低於0.2)使用此函數格式化錯誤訊息。
|
|
|
50 |
</div>
|
51 |
'''
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
def format_unknown_breed_message(color: str, index: int) -> str:
|
54 |
"""
|
55 |
當狗的品種無法被辨識時(信心度低於0.2)使用此函數格式化錯誤訊息。
|