Upload folder using huggingface_hub
Browse files- api/podcast.py +2 -1
- core/constants.py +5 -0
api/podcast.py
CHANGED
|
@@ -22,7 +22,8 @@ async def get_podcast_config():
|
|
| 22 |
return {
|
| 23 |
"voices": constants.PODCAST_VOICES,
|
| 24 |
"bgm": constants.PODCAST_BGM,
|
| 25 |
-
"formats": constants.PODCAST_FORMATS
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
@router.post("/analyze")
|
|
|
|
| 22 |
return {
|
| 23 |
"voices": constants.PODCAST_VOICES,
|
| 24 |
"bgm": constants.PODCAST_BGM,
|
| 25 |
+
"formats": constants.PODCAST_FORMATS,
|
| 26 |
+
"tts_models": constants.PODCAST_TTS_MODALS
|
| 27 |
}
|
| 28 |
|
| 29 |
@router.post("/analyze")
|
core/constants.py
CHANGED
|
@@ -44,6 +44,11 @@ PODCAST_VOICES = [
|
|
| 44 |
{"value": "Sulafat", "label": "Sulafat"}
|
| 45 |
]
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
PODCAST_BGM = [
|
| 48 |
{"value": "No BGM", "label": "No BGM"},
|
| 49 |
{"value": "BGM 1", "label": "Background Music 1"},
|
|
|
|
| 44 |
{"value": "Sulafat", "label": "Sulafat"}
|
| 45 |
]
|
| 46 |
|
| 47 |
+
PODCAST_TTS_MODALS=[
|
| 48 |
+
{"value": "gemini-2.5-flash-preview-tts", "label": "Gemini 2.5 Flash Preview TTS"},
|
| 49 |
+
{"value": "gemini-2.5-pro-tts", "label": "Gemini 2.5 Pro TTS"},
|
| 50 |
+
]
|
| 51 |
+
|
| 52 |
PODCAST_BGM = [
|
| 53 |
{"value": "No BGM", "label": "No BGM"},
|
| 54 |
{"value": "BGM 1", "label": "Background Music 1"},
|