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