deveix commited on
Commit
04f4397
·
1 Parent(s): bb9ed6b
Files changed (1) hide show
  1. app/main.py +2 -0
app/main.py CHANGED
@@ -292,6 +292,8 @@ cnn_label_encoder = joblib.load('app/apr23_label.pkl')
292
  @app.post("/cnn")
293
  async def handle_cnn(file: UploadFile = File(...)):
294
  try:
 
 
295
  # Ensure that we are handling an MP3 file
296
  if file.content_type == "audio/mpeg" or file.content_type == "audio/mp3":
297
  file_extension = ".mp3"
 
292
  @app.post("/cnn")
293
  async def handle_cnn(file: UploadFile = File(...)):
294
  try:
295
+ print("got into request")
296
+ print(file.content_type)
297
  # Ensure that we are handling an MP3 file
298
  if file.content_type == "audio/mpeg" or file.content_type == "audio/mp3":
299
  file_extension = ".mp3"