ThankGod commited on
Commit
47a54fc
·
1 Parent(s): 4026763

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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'models/{model_name}.pkl', 'rb') as file:
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, share=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)