panditamey commited on
Commit
6f47b98
1 Parent(s): 0d8159e

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
api.py CHANGED
@@ -32,7 +32,7 @@ predict_ml=load_model('model_flowers_classification.h5')
32
 
33
 
34
  @app.post('/predict')
35
- async def cropdisease(file: UploadFile = File(...)):
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: