Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -20,7 +20,7 @@ app.add_middleware(
|
|
20 |
|
21 |
|
22 |
names = {0: 'breaking-stage', 1: 'half-riping-stage', 2: 'overripe un-healthy', 3: 'ripe', 4: 'ripe_with_consumable_disease', 5: 'unripe'}
|
23 |
-
@app.
|
24 |
async def get_prediction(file: UploadFile = File(...)):
|
25 |
|
26 |
file_name = file.filename
|
|
|
20 |
|
21 |
|
22 |
names = {0: 'breaking-stage', 1: 'half-riping-stage', 2: 'overripe un-healthy', 3: 'ripe', 4: 'ripe_with_consumable_disease', 5: 'unripe'}
|
23 |
+
@app.post("/predict")
|
24 |
async def get_prediction(file: UploadFile = File(...)):
|
25 |
|
26 |
file_name = file.filename
|