Spaces:
Running on Zero
Running on Zero
Update breed_recommendation.py
Browse files10 unmodified lines11121314151617272 unmodified lines29029129229329429529629729829930030110 unmodified linesdef create_custom_button_style():return """<style>/* 確保選擇器精確匹配 */button#find-match-btn {background: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%) !important;border: none !important;272 unmodified linesprint(traceback.format_exc())return ["Error getting recommendations", gr.HTML.update(visible=False)]# def update_status_and_process(*args):# return [# "", # 清空現有結果# gr.update(visible=True)# ]def update_status_and_process(*args):return [gr.update(value=None, visible=True), # 更新可見性10 unmodified lines11121314151617272 unmodified lines29029129229329429510 unmodified linesdef create_custom_button_style():return """<style>/* 確保有匹配到 */button#find-match-btn {background: linear-gradient(90deg, #ff5f6d 0%, #ffc371 100%) !important;border: none !important;272 unmodified linesprint(traceback.format_exc())return ["Error getting recommendations", gr.HTML.update(visible=False)]def update_status_and_process(*args):return [gr.update(value=None, visible=True), # 更新可見性
breed_recommendation.py+1-7