Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,17 @@ def sale_pred_batch():
|
|
47 |
|
48 |
# Create response
|
49 |
response = dict(zip(sale_outlets, predicted_sales))
|
50 |
-
|
51 |
print("Response:", response)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
return jsonify(response) jsonify(repshape)
|
54 |
|
|
|
47 |
|
48 |
# Create response
|
49 |
response = dict(zip(sale_outlets, predicted_sales))
|
50 |
+
|
51 |
print("Response:", response)
|
52 |
+
repshape = {'input_shape': input_data.shape, 'predicted_count': len(predicted_sale)}
|
53 |
+
|
54 |
+
print("Response Shape:", repshape)
|
55 |
+
|
56 |
+
# Return combined response
|
57 |
+
return jsonify({
|
58 |
+
'predictions': response,
|
59 |
+
'metadata': repshape
|
60 |
+
})
|
61 |
|
62 |
return jsonify(response) jsonify(repshape)
|
63 |
|