MariaKaiser commited on
Commit
046f242
·
verified ·
1 Parent(s): 5987205

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -342,9 +342,9 @@ def root():
342
  #-----------------------------------------------------------
343
 
344
  class TTSResponse(BaseModel):
345
- file_name: str
346
  duration: float # seconds
347
- audio_base64: str
348
 
349
  ######## Convert your audio to Base64
350
  import base64
@@ -446,9 +446,9 @@ async def run_tts_pipeline(task_id: str, story: StoryCreationDTO):
446
  tasks[task_id] = {
447
  "status": "completed",
448
  "result": {
449
- "file_name": os.path.basename(final_generated_story_path),
450
  "duration": duration,
451
- "audio_base64": audio_b64
452
  }
453
  }
454
 
 
342
  #-----------------------------------------------------------
343
 
344
  class TTSResponse(BaseModel):
345
+ fileName: str
346
  duration: float # seconds
347
+ audioBase64: str
348
 
349
  ######## Convert your audio to Base64
350
  import base64
 
446
  tasks[task_id] = {
447
  "status": "completed",
448
  "result": {
449
+ "fileName": os.path.basename(final_generated_story_path),
450
  "duration": duration,
451
+ "audioBase64": audio_b64
452
  }
453
  }
454