Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -181,11 +181,13 @@ def main():
|
|
181 |
# Assuming 1 minute (60 seconds) is 65 words
|
182 |
words_per_second = 65 / 60
|
183 |
|
184 |
-
|
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 |
target_word_count = int(selected_duration_seconds * words_per_second)
|
190 |
|
191 |
|
|
|
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 |
|