MariaKaiser commited on
Commit
97f3e4e
·
verified ·
1 Parent(s): 71a73af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -548,9 +548,9 @@ async def run_tts_pipeline(task_id: str, story: StoryCreationDTO):
548
  with open(final_generated_storypath, "rb") as f:
549
  file_bytes = f.read()
550
 
551
- supabase.storage.from("story-audio-files").upload(
552
  storage_path,
553
- file_bytes
554
  )
555
 
556
  # 6️⃣ Get public URL
 
548
  with open(final_generated_storypath, "rb") as f:
549
  file_bytes = f.read()
550
 
551
+ supabase.storage.from_("story-audio-files").upload(
552
  storage_path,
553
+ final_generated_storypath
554
  )
555
 
556
  # 6️⃣ Get public URL