Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,13 +56,11 @@ def predict(input_data: UserInput):
|
|
| 56 |
user_dict = input_data.dict()
|
| 57 |
user_id = user_dict["user_id"]
|
| 58 |
|
| 59 |
-
predictions = model.predict_user_input(user_dict
|
| 60 |
|
| 61 |
-
# Store predictions in Supabase
|
| 62 |
model.store_predictions(user_id, predictions, user_dict)
|
| 63 |
|
| 64 |
-
|
| 65 |
-
feedback = model.pd.DataFrame([{
|
| 66 |
'date': datetime.today().strftime('%Y-%m-%d'),
|
| 67 |
'product': k,
|
| 68 |
'region': user_dict['region'],
|
|
|
|
| 56 |
user_dict = input_data.dict()
|
| 57 |
user_id = user_dict["user_id"]
|
| 58 |
|
| 59 |
+
predictions = model.predict_user_input(user_dict)
|
| 60 |
|
|
|
|
| 61 |
model.store_predictions(user_id, predictions, user_dict)
|
| 62 |
|
| 63 |
+
feedback = pd.DataFrame([{
|
|
|
|
| 64 |
'date': datetime.today().strftime('%Y-%m-%d'),
|
| 65 |
'product': k,
|
| 66 |
'region': user_dict['region'],
|