Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,20 +23,16 @@ colsample_bytree_input = st.slider("Colsample bytree", 0.0, 1.0, 0.5)
|
|
23 |
learning_rate_input = st.slider("Learning rate", 0.0, 1.0, 0.2)
|
24 |
alpha_input = st.slider("Alpha", 1, 100, 10)
|
25 |
n_estimators_input = st.slider("n estimators", 1, 100, 20)
|
26 |
-
|
27 |
-
'Which city do you want to predict rain ?',
|
28 |
-
("Canberra",
|
29 |
-
"Albury",
|
30 |
-
"Penrith",
|
31 |
-
"Sydney",
|
32 |
-
"MountGinini",
|
33 |
-
"Bendigo",
|
34 |
-
"Brisbane",
|
35 |
-
"Portland"), index=0)
|
36 |
|
37 |
|
38 |
df = pd.read_csv("new_dataset.csv")
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
def mergeStateToCountry():
|
41 |
df.loc[df['State'].notna(), 'Country'] = df['State']
|
42 |
df = df.loc[:, ~df.columns.str.contains('State')]
|
|
|
23 |
learning_rate_input = st.slider("Learning rate", 0.0, 1.0, 0.2)
|
24 |
alpha_input = st.slider("Alpha", 1, 100, 10)
|
25 |
n_estimators_input = st.slider("n estimators", 1, 100, 20)
|
26 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
|
29 |
df = pd.read_csv("new_dataset.csv")
|
30 |
|
31 |
+
city_input = st.selectbox(
|
32 |
+
'Which region do you want to predict temparature ?',
|
33 |
+
("all",
|
34 |
+
df["Region"].unique()), index=0)
|
35 |
+
|
36 |
def mergeStateToCountry():
|
37 |
df.loc[df['State'].notna(), 'Country'] = df['State']
|
38 |
df = df.loc[:, ~df.columns.str.contains('State')]
|