Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -71,12 +71,14 @@ def process_product(product_name, data):
|
|
71 |
"Product Name": product_name,
|
72 |
"next_month": str(result_dict["next_month"]),
|
73 |
"predicted_count": result_dict["predicted_count"]
|
|
|
74 |
}
|
75 |
except Exception as e:
|
76 |
return {
|
77 |
"Product Name": product_name,
|
78 |
"next_month": str(e),
|
79 |
"predicted_count": "not predicted"
|
|
|
80 |
}
|
81 |
|
82 |
@app.post("/get_product_count_prediction")
|
|
|
71 |
"Product Name": product_name,
|
72 |
"next_month": str(result_dict["next_month"]),
|
73 |
"predicted_count": result_dict["predicted_count"]
|
74 |
+
"full_trend" : full_trend
|
75 |
}
|
76 |
except Exception as e:
|
77 |
return {
|
78 |
"Product Name": product_name,
|
79 |
"next_month": str(e),
|
80 |
"predicted_count": "not predicted"
|
81 |
+
"full_trend" : full_trend
|
82 |
}
|
83 |
|
84 |
@app.post("/get_product_count_prediction")
|