Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def predict(Windy:bool=True
|
|
14 |
):
|
15 |
prediction_array = no.array(Windy,Outlook_Rainy,Outlook_Sunny,Temp_Hot,Temp_Mild,Humidity_Normal)
|
16 |
play_golf = dct_playgolf.Predict(prediction_array)
|
17 |
-
if play_golf
|
18 |
return f'Weather is good for playing golf'
|
19 |
else:
|
20 |
return f'Weather is horrible for playing golf'
|
|
|
14 |
):
|
15 |
prediction_array = no.array(Windy,Outlook_Rainy,Outlook_Sunny,Temp_Hot,Temp_Mild,Humidity_Normal)
|
16 |
play_golf = dct_playgolf.Predict(prediction_array)
|
17 |
+
if play_golf := 'Yes':
|
18 |
return f'Weather is good for playing golf'
|
19 |
else:
|
20 |
return f'Weather is horrible for playing golf'
|