tuan243 commited on
Commit
b6fcbdd
·
verified ·
1 Parent(s): ee42cb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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(...)):