Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -546,12 +546,10 @@ async def run_tts_pipeline(task_id: str, story: StoryCreationDTO):
|
|
| 546 |
storage_path = f"{story.storyId}/final/{file_name}"
|
| 547 |
|
| 548 |
# 5️⃣ Upload to Supabase
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
content_type="audio/wav"
|
| 554 |
-
)
|
| 555 |
|
| 556 |
# 6️⃣ Get public URL
|
| 557 |
audio_url = supabase.storage.from_("story-audio-files").get_public_url(storage_path)
|
|
|
|
| 546 |
storage_path = f"{story.storyId}/final/{file_name}"
|
| 547 |
|
| 548 |
# 5️⃣ Upload to Supabase
|
| 549 |
+
supabase.storage.from("story-audio-files").upload(
|
| 550 |
+
storage_path,
|
| 551 |
+
final_generated_storypath
|
| 552 |
+
)
|
|
|
|
|
|
|
| 553 |
|
| 554 |
# 6️⃣ Get public URL
|
| 555 |
audio_url = supabase.storage.from_("story-audio-files").get_public_url(storage_path)
|