rahulnamdev commited on
Commit
89cf407
·
verified ·
1 Parent(s): b8c2f8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -14,11 +14,11 @@ def predict_price_tool(arg1:str)-> float: #it's import to specify the return typ
14
  Args:
15
  arg1: the category of product
16
  """
17
- filter_dataset = dataset['train']['Category' == arg1]
18
- filter_dataset_min = filter_dataset['Selling Price'].min()
19
- filter_dataset_max = filter_dataset['Selling Price'].min()
20
-
21
- return (filter_dataset_min + filter_dataset_max )/2
22
 
23
 
24
  #Agent Example
 
14
  Args:
15
  arg1: the category of product
16
  """
17
+ filter_dataset = dataset['train']['Category'].unique()
18
+ #filter_dataset_min = filter_dataset['Selling Price'].min()
19
+ #filter_dataset_max = filter_dataset['Selling Price'].min()
20
+ return 1
21
+ #return (filter_dataset_min + filter_dataset_max )/2
22
 
23
 
24
  #Agent Example