Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def preguntar_al_usuario(pregunta):
|
|
33 |
return response.choices[0].message.content.strip()
|
34 |
|
35 |
# Estaciones m谩s cercanas
|
36 |
-
def get_nearest_stations(ubicacion, top_n=
|
37 |
loc = geolocator.geocode(f"{ubicacion}, Barcelona, Spain")
|
38 |
if not loc:
|
39 |
return pd.DataFrame()
|
@@ -94,7 +94,7 @@ def predict_disponibilidad(context):
|
|
94 |
context["hour"],
|
95 |
0, 0, 0, 0, # ctx hist贸ricos por defecto
|
96 |
temp,
|
97 |
-
|
98 |
]])
|
99 |
pred = model.predict(X)[0]
|
100 |
|
|
|
33 |
return response.choices[0].message.content.strip()
|
34 |
|
35 |
# Estaciones m谩s cercanas
|
36 |
+
def get_nearest_stations(ubicacion, top_n=10):
|
37 |
loc = geolocator.geocode(f"{ubicacion}, Barcelona, Spain")
|
38 |
if not loc:
|
39 |
return pd.DataFrame()
|
|
|
94 |
context["hour"],
|
95 |
0, 0, 0, 0, # ctx hist贸ricos por defecto
|
96 |
temp,
|
97 |
+
precip
|
98 |
]])
|
99 |
pred = model.predict(X)[0]
|
100 |
|