tsi-org commited on
Commit
a4848a8
1 Parent(s): 4a6135d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -11,6 +11,7 @@ from dotenv import load_dotenv
11
 
12
  # Set up page configuration
13
  st.set_page_config(page_title="AI Voiceover", page_icon="🔮")
 
14
 
15
  # Load environment variables
16
 
@@ -178,19 +179,18 @@ def main():
178
 
179
  voice_options = {'Echo (Male)': 'echo', 'Fable (Male)': 'fable', 'Onyx (Male)': 'onyx', 'Nova (Female)': 'nova', 'Shimmer (Female)': 'shimmer', 'Alloy (Female)': 'alloy'}
180
  voice = st.selectbox('Choose the voice you want', list(voice_options.keys()))
 
181
  # Assuming 1 minute (60 seconds) is 65 words
182
- words_per_second = 65 / 60
 
183
 
184
- # User selects duration in seconds
185
  duration_options = list(range(10, 121, 10)) # 10 to 120 seconds, in 10-second intervals
186
  selected_duration_seconds = st.selectbox('Select the desired video duration (seconds)', duration_options)
187
-
188
  # Calculate the target word count based on the selected duration in seconds
189
- words_per_minute = 65
190
- words_per_second = words_per_minute / 60
191
  target_word_count = int(selected_duration_seconds * words_per_second)
192
 
193
-
194
 
195
  # duration_options = list(range(10, 121, 10)) # 10 to 120 seconds, in 10-second intervals
196
  # selected_duration = st.selectbox('Select the desired video duration (seconds)', duration_options)
 
11
 
12
  # Set up page configuration
13
  st.set_page_config(page_title="AI Voiceover", page_icon="🔮")
14
+ st.title("Pixio Video to Voiceover 🎥🔮")
15
 
16
  # Load environment variables
17
 
 
179
 
180
  voice_options = {'Echo (Male)': 'echo', 'Fable (Male)': 'fable', 'Onyx (Male)': 'onyx', 'Nova (Female)': 'nova', 'Shimmer (Female)': 'shimmer', 'Alloy (Female)': 'alloy'}
181
  voice = st.selectbox('Choose the voice you want', list(voice_options.keys()))
182
+
183
  # Assuming 1 minute (60 seconds) is 65 words
184
+ words_per_minute = 65
185
+ words_per_second = words_per_minute / 60
186
 
187
+ # User selects duration in seconds
188
  duration_options = list(range(10, 121, 10)) # 10 to 120 seconds, in 10-second intervals
189
  selected_duration_seconds = st.selectbox('Select the desired video duration (seconds)', duration_options)
190
+
191
  # Calculate the target word count based on the selected duration in seconds
 
 
192
  target_word_count = int(selected_duration_seconds * words_per_second)
193
 
 
194
 
195
  # duration_options = list(range(10, 121, 10)) # 10 to 120 seconds, in 10-second intervals
196
  # selected_duration = st.selectbox('Select the desired video duration (seconds)', duration_options)