Spaces:
Runtime error
Runtime error
Karthikeyaandhoju
commited on
Commit
•
512ebe0
1
Parent(s):
82fb1db
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ class TranscriptionResponse(BaseModel):
|
|
13 |
|
14 |
@app.post("/transcribe/", response_model=TranscriptionResponse)
|
15 |
async def transcribe(file_name: str):
|
16 |
-
file_path = os.path.join("
|
17 |
|
18 |
# Check if file exists
|
19 |
if not os.path.exists(file_path):
|
|
|
13 |
|
14 |
@app.post("/transcribe/", response_model=TranscriptionResponse)
|
15 |
async def transcribe(file_name: str):
|
16 |
+
file_path = os.path.join("audio_files", file_name) # Path within the Docker container
|
17 |
|
18 |
# Check if file exists
|
19 |
if not os.path.exists(file_path):
|