Spaces:
Running
on
Zero
Running
on
Zero
Update breed_recommendation.py
Browse files- breed_recommendation.py +1 -7
breed_recommendation.py
CHANGED
@@ -11,7 +11,7 @@ from search_history import create_history_tab, create_history_component
|
|
11 |
def create_custom_button_style():
|
12 |
return """
|
13 |
<style>
|
14 |
-
/*
|
15 |
button#find-match-btn {
|
16 |
background: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%) !important;
|
17 |
border: none !important;
|
@@ -290,12 +290,6 @@ def create_recommendation_tab(UserPreferences, get_breed_recommendations, format
|
|
290 |
print(traceback.format_exc())
|
291 |
return ["Error getting recommendations", gr.HTML.update(visible=False)]
|
292 |
|
293 |
-
# def update_status_and_process(*args):
|
294 |
-
# return [
|
295 |
-
# "", # 清空現有結果
|
296 |
-
# gr.update(visible=True)
|
297 |
-
# ]
|
298 |
-
|
299 |
def update_status_and_process(*args):
|
300 |
return [
|
301 |
gr.update(value=None, visible=True), # 更新可見性
|
|
|
11 |
def create_custom_button_style():
|
12 |
return """
|
13 |
<style>
|
14 |
+
/* 確保有匹配到 */
|
15 |
button#find-match-btn {
|
16 |
background: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%) !important;
|
17 |
border: none !important;
|
|
|
290 |
print(traceback.format_exc())
|
291 |
return ["Error getting recommendations", gr.HTML.update(visible=False)]
|
292 |
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
def update_status_and_process(*args):
|
294 |
return [
|
295 |
gr.update(value=None, visible=True), # 更新可見性
|