Karthikeyaandhoju commited on
Commit
512ebe0
1 Parent(s): 82fb1db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("/app/audio_files", file_name) # Assuming audio files are stored in /app/audio_files directory
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):