Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,6 +43,12 @@ def detect_noise(audio_path):
|
|
| 43 |
return f"ồn ào ({event_label})"
|
| 44 |
return "yên tĩnh"
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
# API nhận file âm thanh từ Flutter
|
| 47 |
@app.post("/detect-noise/")
|
| 48 |
async def detect_noise_api(file: UploadFile = File(...)):
|
|
|
|
| 43 |
return f"ồn ào ({event_label})"
|
| 44 |
return "yên tĩnh"
|
| 45 |
|
| 46 |
+
@app.get("/")
|
| 47 |
+
def read_root():
|
| 48 |
+
return {"message": "Hello, World!"}
|
| 49 |
+
|
| 50 |
+
print(app.routes)
|
| 51 |
+
|
| 52 |
# API nhận file âm thanh từ Flutter
|
| 53 |
@app.post("/detect-noise/")
|
| 54 |
async def detect_noise_api(file: UploadFile = File(...)):
|