Spaces:
Runtime error
Runtime error
panditamey
commited on
Commit
•
6f47b98
1
Parent(s):
0d8159e
Update api.py
Browse files
api.py
CHANGED
@@ -32,7 +32,7 @@ predict_ml=load_model('model_flowers_classification.h5')
|
|
32 |
|
33 |
|
34 |
@app.post('/predict')
|
35 |
-
async def
|
36 |
try:
|
37 |
contents = file.file.read()
|
38 |
with open(file.filename, 'wb') as f:
|
|
|
32 |
|
33 |
|
34 |
@app.post('/predict')
|
35 |
+
async def flowerpredict(file: UploadFile = File(...)):
|
36 |
try:
|
37 |
contents = file.file.read()
|
38 |
with open(file.filename, 'wb') as f:
|