Update app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ app = FastAPI(
|
|
| 139 |
@app.post("/predict")
|
| 140 |
async def predict(
|
| 141 |
file: UploadFile = File(...),
|
| 142 |
-
detection_threshold: float = 0.
|
| 143 |
classification_threshold: float = 0.6
|
| 144 |
):
|
| 145 |
if not file.filename.lower().endswith((".wav", ".mp3", ".flac", ".ogg")):
|
|
|
|
| 139 |
@app.post("/predict")
|
| 140 |
async def predict(
|
| 141 |
file: UploadFile = File(...),
|
| 142 |
+
detection_threshold: float = 0.5,
|
| 143 |
classification_threshold: float = 0.6
|
| 144 |
):
|
| 145 |
if not file.filename.lower().endswith((".wav", ".mp3", ".flac", ".ogg")):
|