Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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'
|
| 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
|