Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,6 +155,14 @@ def main():
|
|
| 155 |
'Website Tutorial': "Generate a short voiceover that is approximately {selected_duration} seconds long.Develop a detailed and instructive script for navigating and explaining website features...",
|
| 156 |
'General Info': "Generate a short voiceover that is approximately {selected_duration} seconds long.Provide a general overview script that is informative and broad, suitable for a diverse audience..."
|
| 157 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
prompt = "Customize your prompt based on the script type selected above and additional features added."
|
| 159 |
|
| 160 |
# Generate the initial prompt based on selected script type
|
|
|
|
| 155 |
'Website Tutorial': "Generate a short voiceover that is approximately {selected_duration} seconds long.Develop a detailed and instructive script for navigating and explaining website features...",
|
| 156 |
'General Info': "Generate a short voiceover that is approximately {selected_duration} seconds long.Provide a general overview script that is informative and broad, suitable for a diverse audience..."
|
| 157 |
}
|
| 158 |
+
|
| 159 |
+
# Ensure the prompt is generated using the correct variable from script_templates
|
| 160 |
+
if selected_script_type in script_templates:
|
| 161 |
+
prompt_template = script_templates[selected_script_type]
|
| 162 |
+
prompt = prompt_template.format(duration=selected_duration) # Customize this based on your needs
|
| 163 |
+
else:
|
| 164 |
+
st.error("Selected script type does not have a template.")
|
| 165 |
+
return
|
| 166 |
prompt = "Customize your prompt based on the script type selected above and additional features added."
|
| 167 |
|
| 168 |
# Generate the initial prompt based on selected script type
|