Spaces:
Runtime error
Runtime error
Update app.py
Browse filesSpell "temperature" correctly in the argument description comment
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def celcius_tool(convertTo:str, temperature:int)-> str: #it's important to speci
|
|
| 14 |
""" Convert temperature to Fahrenheit or Celsius
|
| 15 |
Args:
|
| 16 |
convertTo: Which temp to convert to F=Fahrenheit, C=Celsius
|
| 17 |
-
|
| 18 |
"""
|
| 19 |
if convertTo == "F":
|
| 20 |
return f"Temperature {temperature} degrees in Fahrenheit is {(temperature * 1.8) + 32}"
|
|
|
|
| 14 |
""" Convert temperature to Fahrenheit or Celsius
|
| 15 |
Args:
|
| 16 |
convertTo: Which temp to convert to F=Fahrenheit, C=Celsius
|
| 17 |
+
temperature: Convert the temperature to either F or C, as specified
|
| 18 |
"""
|
| 19 |
if convertTo == "F":
|
| 20 |
return f"Temperature {temperature} degrees in Fahrenheit is {(temperature * 1.8) + 32}"
|