Spaces:
Sleeping
Sleeping
update app
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def import_model():
|
|
10 |
model_names = ['random_forest', 'xgboost', 'decision_tree']
|
11 |
loaded_models = tuple()
|
12 |
for model_name in model_names:
|
13 |
-
with open(f'
|
14 |
model = pickle.load(file)
|
15 |
loaded_models += (model,)
|
16 |
return loaded_models
|
@@ -87,4 +87,4 @@ with gr.Blocks() as demo:
|
|
87 |
btn_predict.click(fn=predict_liquid_rate, inputs=input_items, outputs=[xg_output,dt_output,rf_output])
|
88 |
#gr.describe()
|
89 |
|
90 |
-
demo.launch(debug=True
|
|
|
10 |
model_names = ['random_forest', 'xgboost', 'decision_tree']
|
11 |
loaded_models = tuple()
|
12 |
for model_name in model_names:
|
13 |
+
with open(f'{model_name}.pkl', 'rb') as file:
|
14 |
model = pickle.load(file)
|
15 |
loaded_models += (model,)
|
16 |
return loaded_models
|
|
|
87 |
btn_predict.click(fn=predict_liquid_rate, inputs=input_items, outputs=[xg_output,dt_output,rf_output])
|
88 |
#gr.describe()
|
89 |
|
90 |
+
demo.launch(debug=True)
|