Skip to content

Commit

Permalink
fix viedeobots pricing note; lipsync tts voice selector
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Feb 29, 2024
1 parent 11e657b commit cda9a07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions recipes/LipsyncTTS.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import gooey_ui as st
from bots.models import Workflow
from daras_ai_v2.text_to_speech_settings_widgets import text_to_speech_provider_selector
from recipes.Lipsync import LipsyncPage
from recipes.TextToSpeech import TextToSpeechPage, TextToSpeechProviders
from daras_ai_v2.safety_checker import safety_checker
Expand Down Expand Up @@ -86,6 +87,7 @@ def render_form_v2(self):
""",
key="text_prompt",
)
text_to_speech_provider_selector(self)

def validate_form_v2(self):
assert st.session_state.get(
Expand Down
10 changes: 6 additions & 4 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,12 @@ def additional_notes(self):
tts_provider = st.session_state.get("tts_provider")
match tts_provider:
case TextToSpeechProviders.ELEVEN_LABS.name:
return f"""
- *Base cost = {super().get_raw_price(st.session_state)} credits*
- *Additional {TextToSpeechPage().additional_notes()}*
"""
return (
f" \\\n"
f"*Base cost = {super().get_raw_price(st.session_state)} credits*"
f" | "
f"*Additional {TextToSpeechPage().get_cost_note()}*"
)
case _:
return ""

Expand Down

0 comments on commit cda9a07

Please sign in to comment.