Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -157,9 +157,6 @@ def hbdscan_tranform(df_transformed):
|
|
157 |
df_transformed[numerical_features] = scaler.fit_transform(df_transformed[numerical_features])
|
158 |
return df_transformed
|
159 |
|
160 |
-
# Launch the app
|
161 |
-
interface.launch()
|
162 |
-
|
163 |
# Shared inputs
|
164 |
inputs = [
|
165 |
gr.Slider(18, 90, step=1, label="Age"),
|
@@ -193,11 +190,11 @@ rf_interface = gr.Interface(
|
|
193 |
description="Predict income using a Random Forest model."
|
194 |
)
|
195 |
|
196 |
-
|
197 |
interface = gr.TabbedInterface(
|
198 |
[ann_interface, rf_interface],
|
199 |
["ANN Model", "Random Forest Model"]
|
200 |
)
|
201 |
|
202 |
-
|
203 |
interface.launch()
|
|
|
157 |
df_transformed[numerical_features] = scaler.fit_transform(df_transformed[numerical_features])
|
158 |
return df_transformed
|
159 |
|
|
|
|
|
|
|
160 |
# Shared inputs
|
161 |
inputs = [
|
162 |
gr.Slider(18, 90, step=1, label="Age"),
|
|
|
190 |
description="Predict income using a Random Forest model."
|
191 |
)
|
192 |
|
193 |
+
|
194 |
interface = gr.TabbedInterface(
|
195 |
[ann_interface, rf_interface],
|
196 |
["ANN Model", "Random Forest Model"]
|
197 |
)
|
198 |
|
199 |
+
|
200 |
interface.launch()
|