push app
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from fastapi import FastAPI, UploadFile, HTTPException
|
| 2 |
from fastapi.responses import JSONResponse
|
| 3 |
from fastapi.middleware.cors import CORSMiddleware
|
| 4 |
import sys
|
|
@@ -329,8 +329,6 @@ async def transcribe(file: UploadFile, language: str = Form(...)):
|
|
| 329 |
os.remove(temp_filepath)
|
| 330 |
|
| 331 |
|
| 332 |
-
from fastapi import FastAPI, UploadFile, File, Form, HTTPException
|
| 333 |
-
|
| 334 |
@app.post('/analyze_all/')
|
| 335 |
async def analyze_all(file: UploadFile, language: str = Form(...)):
|
| 336 |
"""
|
|
|
|
| 1 |
+
from fastapi import FastAPI, UploadFile, File, Form, HTTPException
|
| 2 |
from fastapi.responses import JSONResponse
|
| 3 |
from fastapi.middleware.cors import CORSMiddleware
|
| 4 |
import sys
|
|
|
|
| 329 |
os.remove(temp_filepath)
|
| 330 |
|
| 331 |
|
|
|
|
|
|
|
| 332 |
@app.post('/analyze_all/')
|
| 333 |
async def analyze_all(file: UploadFile, language: str = Form(...)):
|
| 334 |
"""
|