Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import sqlite3
|
|
| 4 |
from catboost import CatBoostRegressor
|
| 5 |
|
| 6 |
def predict_mode():
|
|
|
|
| 7 |
st.title("π Predict Mode: Salary Prediction")
|
| 8 |
|
| 9 |
# Input fields for prediction
|
|
@@ -67,9 +68,10 @@ def predict_mode():
|
|
| 67 |
model = CatBoostRegressor()
|
| 68 |
model.load_model("PlaceMe_CatBoost.cbm", format="cbm")
|
| 69 |
prediction = model.predict(input_df)
|
| 70 |
-
st.success(f"Predicted Salary: {prediction[0]:.2f}")
|
| 71 |
|
| 72 |
def db_mode():
|
|
|
|
| 73 |
st.title("ποΈ DB Mode: Database Viewer")
|
| 74 |
|
| 75 |
# Connect to the SQLite database
|
|
|
|
| 4 |
from catboost import CatBoostRegressor
|
| 5 |
|
| 6 |
def predict_mode():
|
| 7 |
+
st.title("π
Ώπ
»π
°π
²π
΄ πΌπ΄")
|
| 8 |
st.title("π Predict Mode: Salary Prediction")
|
| 9 |
|
| 10 |
# Input fields for prediction
|
|
|
|
| 68 |
model = CatBoostRegressor()
|
| 69 |
model.load_model("PlaceMe_CatBoost.cbm", format="cbm")
|
| 70 |
prediction = model.predict(input_df)
|
| 71 |
+
st.success(f"Predicted Salary: βΉ{prediction[0]:.2f}")
|
| 72 |
|
| 73 |
def db_mode():
|
| 74 |
+
st.title("π
Ώπ
»π
°π
²π
΄ πΌπ΄")
|
| 75 |
st.title("ποΈ DB Mode: Database Viewer")
|
| 76 |
|
| 77 |
# Connect to the SQLite database
|