Upload app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,6 @@ scheduler = CommitScheduler(
|
|
24 |
path_in_repo="data",
|
25 |
every=2
|
26 |
)
|
27 |
-
print('*** hello ***')
|
28 |
|
29 |
# Load the saved model
|
30 |
insurance_charge_predictor = joblib.load('model.joblib')
|
@@ -100,7 +99,9 @@ gr_interface = gr.Interface(
|
|
100 |
gr_interface.queue()
|
101 |
gr_interface.launch(share=False)
|
102 |
|
|
|
103 |
import subprocess
|
104 |
|
105 |
# Run the training script
|
106 |
subprocess.run(["python", "train.py"])
|
|
|
|
24 |
path_in_repo="data",
|
25 |
every=2
|
26 |
)
|
|
|
27 |
|
28 |
# Load the saved model
|
29 |
insurance_charge_predictor = joblib.load('model.joblib')
|
|
|
99 |
gr_interface.queue()
|
100 |
gr_interface.launch(share=False)
|
101 |
|
102 |
+
print('*** Running train.py ***')
|
103 |
import subprocess
|
104 |
|
105 |
# Run the training script
|
106 |
subprocess.run(["python", "train.py"])
|
107 |
+
print('*** done! ***')
|