Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def mytest():
|
|
| 19 |
|
| 20 |
# Define an endpoint to predict sales
|
| 21 |
@app.post('/v1/totalsales')
|
| 22 |
-
def
|
| 23 |
# Get JSON data from the request
|
| 24 |
sales_data = request.get_json()
|
| 25 |
|
|
|
|
| 19 |
|
| 20 |
# Define an endpoint to predict sales
|
| 21 |
@app.post('/v1/totalsales')
|
| 22 |
+
def totalsales():
|
| 23 |
# Get JSON data from the request
|
| 24 |
sales_data = request.get_json()
|
| 25 |
|