check without if main
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from sklearn import set_config
|
|
| 7 |
set_config(transform_output="pandas")
|
| 8 |
|
| 9 |
# PAGE CONFIG
|
| 10 |
-
# page_icon = "
|
| 11 |
|
| 12 |
# Setup variables and constants
|
| 13 |
# datetime.now().strftime('%d-%m-%Y _ %Hh %Mm %Ss')
|
|
@@ -178,7 +178,7 @@ encoder = ml_components_dict['encoder'] if 'encoder' in ml_components_dict else
|
|
| 178 |
model = ml_components_dict['model']
|
| 179 |
labels = ml_components_dict['labels'] if 'labels' in ml_components_dict else []
|
| 180 |
idx_to_labels = {i: l for (i, l) in enumerate(labels)}
|
| 181 |
-
end2end_pipeline = ml_components_dict['pipeline']
|
| 182 |
print(f"\n[Info] ML components loaded: {list(ml_components_dict.keys())}")
|
| 183 |
|
| 184 |
df_history = setup(tmp_df_fp)
|
|
@@ -203,9 +203,6 @@ with gr.Blocks() as demo:
|
|
| 203 |
This is a ML API for classification of crop to plant on a land regarding some features
|
| 204 |
''')
|
| 205 |
|
| 206 |
-
# multiple_of = 7
|
| 207 |
-
# print(f"\n[INFO] {init_df.shape[1]}\n")
|
| 208 |
-
|
| 209 |
with gr.Row():
|
| 210 |
for i in range(0, init_df.shape[1],):
|
| 211 |
demo_inputs.append(gr.Number(label=f"Enter {num_cols[i]}"))
|
|
@@ -243,8 +240,6 @@ with gr.Blocks() as demo:
|
|
| 243 |
# ]
|
| 244 |
# )
|
| 245 |
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
debug=True
|
| 250 |
-
)#share=True,
|
|
|
|
| 7 |
set_config(transform_output="pandas")
|
| 8 |
|
| 9 |
# PAGE CONFIG
|
| 10 |
+
# page_icon = "🪴"
|
| 11 |
|
| 12 |
# Setup variables and constants
|
| 13 |
# datetime.now().strftime('%d-%m-%Y _ %Hh %Mm %Ss')
|
|
|
|
| 178 |
model = ml_components_dict['model']
|
| 179 |
labels = ml_components_dict['labels'] if 'labels' in ml_components_dict else []
|
| 180 |
idx_to_labels = {i: l for (i, l) in enumerate(labels)}
|
| 181 |
+
# end2end_pipeline = ml_components_dict['pipeline'] if 'pipeline' in ml_components_dict else None
|
| 182 |
print(f"\n[Info] ML components loaded: {list(ml_components_dict.keys())}")
|
| 183 |
|
| 184 |
df_history = setup(tmp_df_fp)
|
|
|
|
| 203 |
This is a ML API for classification of crop to plant on a land regarding some features
|
| 204 |
''')
|
| 205 |
|
|
|
|
|
|
|
|
|
|
| 206 |
with gr.Row():
|
| 207 |
for i in range(0, init_df.shape[1],):
|
| 208 |
demo_inputs.append(gr.Number(label=f"Enter {num_cols[i]}"))
|
|
|
|
| 240 |
# ]
|
| 241 |
# )
|
| 242 |
|
| 243 |
+
demo.launch(
|
| 244 |
+
debug=True
|
| 245 |
+
)#share=True,
|
|
|
|
|
|