yanielbf commited on
Commit
4f51cde
·
1 Parent(s): a9498aa

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -29,7 +29,7 @@ def transcribe(file):
29
 
30
  app = FastAPI()
31
 
32
- @app.get("/transcribe")
33
  def transcribe(background_tasks: BackgroundTasks, file: UploadFile = File(...)):
34
  background_tasks.add_task(transcribe, file)
35
  return {"text": "Processing file..."}
 
29
 
30
  app = FastAPI()
31
 
32
+ @app.post("/transcribe")
33
  def transcribe(background_tasks: BackgroundTasks, file: UploadFile = File(...)):
34
  background_tasks.add_task(transcribe, file)
35
  return {"text": "Processing file..."}