Spaces:
Sleeping
Sleeping
Commit
·
2705dd2
1
Parent(s):
c131fae
- __pycache__/app.cpython-39.pyc +0 -0
- app.py +8 -8
__pycache__/app.cpython-39.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-39.pyc and b/__pycache__/app.cpython-39.pyc differ
|
|
|
app.py
CHANGED
|
@@ -17,13 +17,13 @@ from dotenv import load_dotenv
|
|
| 17 |
load_dotenv()
|
| 18 |
|
| 19 |
app = FastAPI(
|
| 20 |
-
version="0.0.1",
|
| 21 |
-
servers=[
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
],
|
| 27 |
)
|
| 28 |
|
| 29 |
# Whisper 모델 로드
|
|
@@ -102,7 +102,7 @@ def transcribe_and_send_email(temp_input_file: str, srt_file_path: str, email: s
|
|
| 102 |
os.remove(srt_file_path)
|
| 103 |
|
| 104 |
except Exception as e:
|
| 105 |
-
|
| 106 |
|
| 107 |
@app.post("/transcribe/")
|
| 108 |
def transcribe_video(url: str, email: str, background_tasks: BackgroundTasks, language: str = "en"):
|
|
|
|
| 17 |
load_dotenv()
|
| 18 |
|
| 19 |
app = FastAPI(
|
| 20 |
+
# version="0.0.1",
|
| 21 |
+
# servers=[
|
| 22 |
+
# {
|
| 23 |
+
# "url": "https://leekwoon-whisper-api.hf.space",
|
| 24 |
+
# "description": "video/audio transcription API",
|
| 25 |
+
# }
|
| 26 |
+
# ],
|
| 27 |
)
|
| 28 |
|
| 29 |
# Whisper 모델 로드
|
|
|
|
| 102 |
os.remove(srt_file_path)
|
| 103 |
|
| 104 |
except Exception as e:
|
| 105 |
+
raise e
|
| 106 |
|
| 107 |
@app.post("/transcribe/")
|
| 108 |
def transcribe_video(url: str, email: str, background_tasks: BackgroundTasks, language: str = "en"):
|