Spaces:
Running
on
Zero
Running
on
Zero
Update breed_recommendation.py
Browse files- breed_recommendation.py +8 -1
breed_recommendation.py
CHANGED
@@ -436,12 +436,19 @@ def create_recommendation_tab(UserPreferences, get_breed_recommendations, format
|
|
436 |
""")
|
437 |
|
438 |
# 創建新的按鈕
|
439 |
-
|
440 |
"Find My Perfect Match 🐾",
|
441 |
elem_classes="custom-match-button",
|
442 |
variant="primary"
|
443 |
)
|
444 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
445 |
def on_find_match_click(*args):
|
446 |
try:
|
447 |
loading_messages = [
|
|
|
436 |
""")
|
437 |
|
438 |
# 創建新的按鈕
|
439 |
+
get_recommendations_btn = gr.Button(
|
440 |
"Find My Perfect Match 🐾",
|
441 |
elem_classes="custom-match-button",
|
442 |
variant="primary"
|
443 |
)
|
444 |
|
445 |
+
# 創建輸出顯示組件
|
446 |
+
recommendation_output = gr.HTML(
|
447 |
+
label="Breed Recommendations",
|
448 |
+
visible=True,
|
449 |
+
elem_id="recommendation-output"
|
450 |
+
)
|
451 |
+
|
452 |
def on_find_match_click(*args):
|
453 |
try:
|
454 |
loading_messages = [
|