Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,9 @@ from Gradio_UI import GradioUI
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
def calculate_min_price(prices: list[float])-> str: #it's import to specify the return type
|
| 13 |
-
"""A tool that calculates the min price
|
| 14 |
Args:
|
| 15 |
-
|
| 16 |
-
price2: price of second product
|
| 17 |
"""
|
| 18 |
min_price =min(prices)
|
| 19 |
return f"The minimum price is {min_price}"
|
|
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
def calculate_min_price(prices: list[float])-> str: #it's import to specify the return type
|
| 13 |
+
"""A tool that calculates the min price from list of product prices
|
| 14 |
Args:
|
| 15 |
+
prices: list of product prices of
|
|
|
|
| 16 |
"""
|
| 17 |
min_price =min(prices)
|
| 18 |
return f"The minimum price is {min_price}"
|