userIdc2024 commited on
Commit
e149ed2
·
verified ·
1 Parent(s): e63bc07

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -4
src/streamlit_app.py CHANGED
@@ -44,10 +44,10 @@ def main_app():
44
  continuation = st.toggle("continuationMode", value=True)
45
  voice_type = st.text_input("voiceType", value="")
46
  energy_level = st.text_input("energyLevel", value="")
47
- setting_mode = st.selectbox("settingMode", ["single", "multi"], index=0)
48
- camera_style = st.text_input("cameraStyle", value="")
49
  energy_arc = st.text_input("energyArc", value="")
50
- narrative_style = st.text_input("narrativeStyle", value="")
51
  accent_region = st.text_input("accentRegion", value="")
52
  image_upload = st.file_uploader("First frame image (optional)", type=["png", "jpg", "jpeg", "webp"])
53
  submitted = st.form_submit_button("Generate Segments Payload")
@@ -120,7 +120,7 @@ def main_app():
120
  st.subheader("Audio Generator")
121
  with st.form("audio_generation_form", clear_on_submit=False):
122
  scripts = st.text_area("Scripts", height=180, placeholder="Enter narration text…")
123
- voice_id = st.selectbox("Voice ID", ["alloy", "verse", "sonnet", "narrator"], index=0)
124
  speed = st.slider("Speed", min_value=0.5, max_value=2.0, value=1.0, step=0.1)
125
  volume = st.slider("Volume", min_value=1.0, max_value=5.0, value=1.0, step=0.5)
126
  pitch = st.slider("Pitch (semitones)", min_value=-12, max_value=12, value=0, step=1)
 
44
  continuation = st.toggle("continuationMode", value=True)
45
  voice_type = st.text_input("voiceType", value="")
46
  energy_level = st.text_input("energyLevel", value="")
47
+ setting_mode = st.text_input("settingMode", ["single"])
48
+ camera_style = st.text_input("cameraStyle", value="handheld steadicam")
49
  energy_arc = st.text_input("energyArc", value="")
50
+ narrative_style = st.text_input("narrativeStyle", value="direct address")
51
  accent_region = st.text_input("accentRegion", value="")
52
  image_upload = st.file_uploader("First frame image (optional)", type=["png", "jpg", "jpeg", "webp"])
53
  submitted = st.form_submit_button("Generate Segments Payload")
 
120
  st.subheader("Audio Generator")
121
  with st.form("audio_generation_form", clear_on_submit=False):
122
  scripts = st.text_area("Scripts", height=180, placeholder="Enter narration text…")
123
+ voice_id = st.selectbox("Voice ID", ["Wise_Woman", "Friendly_Person", "Inspirational_girl", "Deep_Voice_Man", "Calm_Woman", "Casual_Guy", "Lively_Girl", "Patient_Man", "Young_Knight", "Determined_Man", "Lovely_Girl", "Decent_Boy", "Imposing_Manner", "Elegant_Man", "Abbess", "Sweet_Girl_2", "Exuberant_Girl"], index=0)
124
  speed = st.slider("Speed", min_value=0.5, max_value=2.0, value=1.0, step=0.1)
125
  volume = st.slider("Volume", min_value=1.0, max_value=5.0, value=1.0, step=0.5)
126
  pitch = st.slider("Pitch (semitones)", min_value=-12, max_value=12, value=0, step=1)