Arafath10 commited on
Commit
86bdf78
·
verified ·
1 Parent(s): 515250c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
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")