Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -39,4 +39,4 @@ async def get_product_count_prediction(b_id:int,product_name:str):
|
|
39 |
# Convert to dictionary
|
40 |
result_dict = rounded_value.to_dict(orient="records")[0]
|
41 |
|
42 |
-
return {"next_month":str(result_dict[next_month]) , "predicted_count":result_dict[predicted_count]}
|
|
|
39 |
# Convert to dictionary
|
40 |
result_dict = rounded_value.to_dict(orient="records")[0]
|
41 |
|
42 |
+
return {"next_month":str(result_dict["next_month"]) , "predicted_count":result_dict["predicted_count"]}
|