DawnC commited on
Commit
40a61e4
1 Parent(s): a099bbc

Update breed_recommendation.py

Browse files
Files changed (1) hide show
  1. breed_recommendation.py +7 -10
breed_recommendation.py CHANGED
@@ -1,16 +1,13 @@
1
-
 
2
  import gradio as gr
3
- from recommendation_html_format import format_recommendation_html, get_breed_recommendations
 
 
 
4
 
5
  def create_recommendation_tab(UserPreferences, get_breed_recommendations, format_recommendation_html, history_component):
6
- """创建品种推荐标签页
7
-
8
- Args:
9
- UserPreferences: 用户偏好类
10
- get_breed_recommendations: 获取品种推荐的函数
11
- format_recommendation_html: 格式化推荐结果的函数
12
- history_component: 历史记录组件
13
- """
14
  with gr.TabItem("Breed Recommendation"):
15
  gr.HTML("<p style='text-align: center;'>Tell us about your lifestyle, and we'll recommend the perfect dog breeds for you!</p>")
16
 
 
1
+ from typing import Dict, Any
2
+ import traceback
3
  import gradio as gr
4
+ from recommendation_html_format import (
5
+ format_recommendation_html,
6
+ get_breed_recommendations
7
+ )
8
 
9
  def create_recommendation_tab(UserPreferences, get_breed_recommendations, format_recommendation_html, history_component):
10
+
 
 
 
 
 
 
 
11
  with gr.TabItem("Breed Recommendation"):
12
  gr.HTML("<p style='text-align: center;'>Tell us about your lifestyle, and we'll recommend the perfect dog breeds for you!</p>")
13