Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -29,7 +29,7 @@ def transcribe(file):
|
|
29 |
|
30 |
app = FastAPI()
|
31 |
|
32 |
-
@app.
|
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..."}
|