Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -42,6 +42,7 @@ async def get_product_count_prediction(b_id: int):
|
|
42 |
"predicted_count": result_dict["predicted_count"]
|
43 |
})
|
44 |
except Exception as e:
|
|
|
45 |
results.append({
|
46 |
"Product Name" : product_name,
|
47 |
"next_month": str(e),
|
@@ -58,6 +59,7 @@ async def get_product_count_prediction(b_id: int):
|
|
58 |
else:
|
59 |
raise HTTPException(status_code=400, detail=message)
|
60 |
except Exception as e:
|
|
|
61 |
response_content = {
|
62 |
"status": "error",
|
63 |
"message": str(e),
|
|
|
42 |
"predicted_count": result_dict["predicted_count"]
|
43 |
})
|
44 |
except Exception as e:
|
45 |
+
print(str(e))
|
46 |
results.append({
|
47 |
"Product Name" : product_name,
|
48 |
"next_month": str(e),
|
|
|
59 |
else:
|
60 |
raise HTTPException(status_code=400, detail=message)
|
61 |
except Exception as e:
|
62 |
+
print(str(e))
|
63 |
response_content = {
|
64 |
"status": "error",
|
65 |
"message": str(e),
|