Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ from train import WeatherPredictor
|
|
5 |
predictor = WeatherPredictor('basel-weather.csv')
|
6 |
predictor.load_model('weather_predictor.pth')
|
7 |
|
8 |
-
@spaces.GPU
|
9 |
def predict_weather(input_date):
|
10 |
result = predictor.predict(input_date)
|
11 |
return result['temp'], result['precip'], result['snow'], result['windspeed']
|
|
|
5 |
predictor = WeatherPredictor('basel-weather.csv')
|
6 |
predictor.load_model('weather_predictor.pth')
|
7 |
|
|
|
8 |
def predict_weather(input_date):
|
9 |
result = predictor.predict(input_date)
|
10 |
return result['temp'], result['precip'], result['snow'], result['windspeed']
|