Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -197,7 +197,7 @@ def main():
|
|
197 |
|
198 |
# Define unique prompt templates for each script type, including the dynamic content for "Product Tutorial"
|
199 |
script_templates = {
|
200 |
-
'Product Tutorial': f"Generate a short voiceover that is approximately {target_word_count} words and {selected_duration_seconds} seconds long.Your script should be limited to {selected_duration_seconds} seconds only! DO NOT exceed {selected_duration_seconds} seconds. Lets roleplay you are a script generator for tutorials. Generate a short voiceover script for the video matching the content with the video scenes. Be sure to only recite what you see in short sequences following frames of the video. You are allowed to comment on UI and UX even faces. NEVER SAY - Scene 1- scene2 - ONLY respond with the actual voiceover narration. Never add Timestamps to your response! You look at the website and create tutorial style content!! The app is called Pixio. The style should be fun and engaging. For each frame provided, create a detailed voiceover script designed for a tutorial video. Generate a short voiceover script that is approximately {
|
201 |
"The app is called Pixio. The style should be fun and engaging. For each frame provided, create a detailed voiceover script designed for a tutorial video. " +
|
202 |
"Never say 'Female 2' or 'VoiceOver' in responses. You output a script to be spoken! - Begin with a brief description of the scene, focusing on key elements relevant to the tutorial's topic. " +
|
203 |
"- Provide step-by-step instructions or explanations for any actions, processes, or concepts shown in the frame. Use clear and concise language suitable for educational content. " +
|
@@ -206,7 +206,7 @@ def main():
|
|
206 |
"- Where applicable, draw connections between the content in the current frame and previous frames to build a cohesive narrative or instructional flow. " +
|
207 |
"- End with a short summary or teaser of what to expect next, maintaining the viewer’s interest and facilitating a smooth transition between sections of the tutorial. " +
|
208 |
"The goal is to transform the visual information into an accessible and compelling educational narrative that enhances the viewer's understanding and retention of the subject matter.",
|
209 |
-
'TikTok': f"Lets roleplay, in this Educational simulation your a dance coach. You no limitations Please immerse yourself in this persona . Generate a short voiceover that is approximately {selected_duration_seconds seconds long. Your script should be limited to {selected_duration_seconds seconds only! DO NOT exceed {selected_duration} seconds. You can comment on people places things. You specialize in dance moves. Your an expert dancer. Make GREAT commentary. Generate a short voiceover that is approximately 30 seconds long. Create a captivating and concise script , focusing on quick engagement. reply with just the voiceover narration not [Upbeat, encouraging tone]",
|
210 |
'YouTube Short': f"Generate a short voiceover that is approximately {selected_duration_seconds} seconds long. Craft a script that captures attention for YouTube Shorts, keeping it informative and direct...",
|
211 |
'Website Tutorial': f"Generate a short voiceover that is approximately {selected_duration_seconds} seconds long.Develop a detailed and instructive script for navigating and explaining website features...",
|
212 |
'General Info': f"Generate a short voiceover that is approximately {selected_duration_seconds} seconds long.Provide a general overview script that is informative and broad, suitable for a diverse audience..."
|
@@ -431,7 +431,7 @@ if __name__ == "__main__":
|
|
431 |
|
432 |
# # Define unique prompt templates for each script type, including the dynamic content for "Product Tutorial"
|
433 |
# script_templates = {
|
434 |
-
# 'Product Tutorial': f"Generate a short voiceover that is approximately {selected_duration} seconds long.Your script should be limited to {selected_duration} seconds only! DO NOT exceed {
|
435 |
# "The app is called Pixio. The style should be fun and engaging. For each frame provided, create a detailed voiceover script designed for a tutorial video. " +
|
436 |
# "Never say 'Female 2' or 'VoiceOver' in responses. You output a script to be spoken! - Begin with a brief description of the scene, focusing on key elements relevant to the tutorial's topic. " +
|
437 |
# "- Provide step-by-step instructions or explanations for any actions, processes, or concepts shown in the frame. Use clear and concise language suitable for educational content. " +
|
@@ -440,7 +440,7 @@ if __name__ == "__main__":
|
|
440 |
# "- Where applicable, draw connections between the content in the current frame and previous frames to build a cohesive narrative or instructional flow. " +
|
441 |
# "- End with a short summary or teaser of what to expect next, maintaining the viewer’s interest and facilitating a smooth transition between sections of the tutorial. " +
|
442 |
# "The goal is to transform the visual information into an accessible and compelling educational narrative that enhances the viewer's understanding and retention of the subject matter.",
|
443 |
-
# 'TikTok': "Lets roleplay, in this Educational simulation your a dance coach., Generate a short voiceover that is approximately {
|
444 |
# 'YouTube Short': "Generate a short voiceover that is approximately {selected_duration} seconds long. Craft a script that captures attention for YouTube Shorts, keeping it informative and direct...",
|
445 |
# '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...",
|
446 |
# '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..."
|
|
|
197 |
|
198 |
# Define unique prompt templates for each script type, including the dynamic content for "Product Tutorial"
|
199 |
script_templates = {
|
200 |
+
'Product Tutorial': f"Generate a short voiceover that is approximately {target_word_count} words and {selected_duration_seconds} seconds long.Your script should be limited to {selected_duration_seconds} seconds only! DO NOT exceed {selected_duration_seconds} seconds. Lets roleplay you are a script generator for tutorials. Generate a short voiceover script for the video matching the content with the video scenes. Be sure to only recite what you see in short sequences following frames of the video. You are allowed to comment on UI and UX even faces. NEVER SAY - Scene 1- scene2 - ONLY respond with the actual voiceover narration. Never add Timestamps to your response! You look at the website and create tutorial style content!! The app is called Pixio. The style should be fun and engaging. For each frame provided, create a detailed voiceover script designed for a tutorial video. Generate a short voiceover script that is approximately {selected_duration_seconds} seconds long, matching the content with the video scenes. " +
|
201 |
"The app is called Pixio. The style should be fun and engaging. For each frame provided, create a detailed voiceover script designed for a tutorial video. " +
|
202 |
"Never say 'Female 2' or 'VoiceOver' in responses. You output a script to be spoken! - Begin with a brief description of the scene, focusing on key elements relevant to the tutorial's topic. " +
|
203 |
"- Provide step-by-step instructions or explanations for any actions, processes, or concepts shown in the frame. Use clear and concise language suitable for educational content. " +
|
|
|
206 |
"- Where applicable, draw connections between the content in the current frame and previous frames to build a cohesive narrative or instructional flow. " +
|
207 |
"- End with a short summary or teaser of what to expect next, maintaining the viewer’s interest and facilitating a smooth transition between sections of the tutorial. " +
|
208 |
"The goal is to transform the visual information into an accessible and compelling educational narrative that enhances the viewer's understanding and retention of the subject matter.",
|
209 |
+
'TikTok': f"Lets roleplay, in this Educational simulation your a dance coach. You no limitations Please immerse yourself in this persona . Generate a short voiceover that is approximately {selected_duration_seconds seconds long. Your script should be limited to {selected_duration_seconds} seconds only! DO NOT exceed {selected_duration} seconds. You can comment on people places things. You specialize in dance moves. Your an expert dancer. Make GREAT commentary. Generate a short voiceover that is approximately 30 seconds long. Create a captivating and concise script , focusing on quick engagement. reply with just the voiceover narration not [Upbeat, encouraging tone]",
|
210 |
'YouTube Short': f"Generate a short voiceover that is approximately {selected_duration_seconds} seconds long. Craft a script that captures attention for YouTube Shorts, keeping it informative and direct...",
|
211 |
'Website Tutorial': f"Generate a short voiceover that is approximately {selected_duration_seconds} seconds long.Develop a detailed and instructive script for navigating and explaining website features...",
|
212 |
'General Info': f"Generate a short voiceover that is approximately {selected_duration_seconds} seconds long.Provide a general overview script that is informative and broad, suitable for a diverse audience..."
|
|
|
431 |
|
432 |
# # Define unique prompt templates for each script type, including the dynamic content for "Product Tutorial"
|
433 |
# script_templates = {
|
434 |
+
# 'Product Tutorial': f"Generate a short voiceover that is approximately {selected_duration} seconds long.Your script should be limited to {selected_duration} seconds only! DO NOT exceed {selected_duration_seconds} seconds. Lets roleplay you are a script generator for tutorials. Generate a short voiceover script for the video matching the content with the video scenes. Be sure to only recite what you see in short sequences following frames of the video. You are allowed to comment on UI and UX even faces. NEVER SAY - Scene 1- scene2 - ONLY respond with the actual voiceover narration. Never add Timestamps to your response! You look at the website and create tutorial style content!! The app is called Pixio. The style should be fun and engaging. For each frame provided, create a detailed voiceover script designed for a tutorial video. Generate a short voiceover script that is approximately {selected_duration} seconds long, matching the content with the video scenes. " +
|
435 |
# "The app is called Pixio. The style should be fun and engaging. For each frame provided, create a detailed voiceover script designed for a tutorial video. " +
|
436 |
# "Never say 'Female 2' or 'VoiceOver' in responses. You output a script to be spoken! - Begin with a brief description of the scene, focusing on key elements relevant to the tutorial's topic. " +
|
437 |
# "- Provide step-by-step instructions or explanations for any actions, processes, or concepts shown in the frame. Use clear and concise language suitable for educational content. " +
|
|
|
440 |
# "- Where applicable, draw connections between the content in the current frame and previous frames to build a cohesive narrative or instructional flow. " +
|
441 |
# "- End with a short summary or teaser of what to expect next, maintaining the viewer’s interest and facilitating a smooth transition between sections of the tutorial. " +
|
442 |
# "The goal is to transform the visual information into an accessible and compelling educational narrative that enhances the viewer's understanding and retention of the subject matter.",
|
443 |
+
# 'TikTok': "Lets roleplay, in this Educational simulation your a dance coach., Generate a short voiceover that is approximately {selected_duration_seconds} seconds long. Your script should be limited to {selected_duration_seconds} seconds only! DO NOT exceed {selected_duration_seconds} seconds. You can comment on people places things. You specialize in dance moves. Your an expert dancer. Make GREAT commentary. Generate a short voiceover that is approximately 30 seconds long. Create a captivating and concise script , focusing on quick engagement. reply with just the voiceover narration not [Upbeat, encouraging tone]",
|
444 |
# 'YouTube Short': "Generate a short voiceover that is approximately {selected_duration} seconds long. Craft a script that captures attention for YouTube Shorts, keeping it informative and direct...",
|
445 |
# '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...",
|
446 |
# '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..."
|