Upload folder using huggingface_hub
Browse files- api/podcast.py +2 -1
- core/constants.py +6 -0
api/podcast.py
CHANGED
|
@@ -23,7 +23,8 @@ async def get_podcast_config():
|
|
| 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")
|
|
|
|
| 23 |
"voices": constants.PODCAST_VOICES,
|
| 24 |
"bgm": constants.PODCAST_BGM,
|
| 25 |
"formats": constants.PODCAST_FORMATS,
|
| 26 |
+
"tts_models": constants.PODCAST_TTS_MODALS,
|
| 27 |
+
"models": constants.PODCAST_MODALS
|
| 28 |
}
|
| 29 |
|
| 30 |
@router.post("/analyze")
|
core/constants.py
CHANGED
|
@@ -49,6 +49,12 @@ PODCAST_TTS_MODALS=[
|
|
| 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"},
|
|
|
|
| 49 |
{"value": "gemini-2.5-pro-tts", "label": "Gemini 2.5 Pro TTS"},
|
| 50 |
]
|
| 51 |
|
| 52 |
+
PODCAST_MODALS=[
|
| 53 |
+
{"value": "gpt-5", "label": "Gpt-5"},
|
| 54 |
+
{"value": "gpt-5-mini", "label": "Gpt-5 Mini"},
|
| 55 |
+
{"value": "gpt-5-nano", "label": "Gpt-5 Nano"},
|
| 56 |
+
]
|
| 57 |
+
|
| 58 |
PODCAST_BGM = [
|
| 59 |
{"value": "No BGM", "label": "No BGM"},
|
| 60 |
{"value": "BGM 1", "label": "Background Music 1"},
|