Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -83,71 +83,48 @@ def generate_script(user_input):
|
|
83 |
'X-Title': 'AI Documentary Maker'
|
84 |
}
|
85 |
|
86 |
-
prompt = f"""You
|
87 |
|
88 |
-
|
89 |
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
|
92 |
-
|
93 |
|
94 |
-
|
95 |
|
96 |
-
|
97 |
|
98 |
-
|
99 |
|
100 |
-
|
101 |
|
102 |
-
|
103 |
-
`[Tag]`
|
104 |
-
Write one sentence under each tag.
|
105 |
|
106 |
-
|
107 |
|
108 |
-
|
109 |
|
110 |
-
|
111 |
|
112 |
-
|
113 |
|
114 |
-
|
115 |
|
116 |
-
|
117 |
|
118 |
-
|
119 |
|
120 |
-
|
121 |
|
122 |
-
- Use natural, native English — like someone casually complaining or joking.
|
123 |
-
|
124 |
-
- Output ONLY the script. NO comments. NO explanations. NO intro or outro.
|
125 |
-
|
126 |
-
EXAMPLE SCRIPT STRUCTURE:
|
127 |
-
|
128 |
-
[School]
|
129 |
-
Twelve years in school, and still not one life skill.
|
130 |
-
|
131 |
-
[Homework]
|
132 |
-
After class ends, the homework punishment begins.
|
133 |
-
|
134 |
-
[Grades]
|
135 |
-
Your future depends on how you did on Tuesday.
|
136 |
-
|
137 |
-
[Creativity]
|
138 |
-
They want innovation, but only inside their rulebook.
|
139 |
-
|
140 |
-
[University]
|
141 |
-
You pay thousands to download PowerPoints and panic.
|
142 |
-
|
143 |
-
[Real Life]
|
144 |
-
No one cares about your degree in the job queue.
|
145 |
-
|
146 |
-
[Debt]
|
147 |
-
Education ends. Payments don’t.
|
148 |
-
|
149 |
-
[Subscribe]
|
150 |
-
Subscribe now, or your diploma will charge you rent.
|
151 |
|
152 |
|
153 |
Now here is the Topic/scrip: {user_input}
|
|
|
83 |
'X-Title': 'AI Documentary Maker'
|
84 |
}
|
85 |
|
86 |
+
prompt = f"""You're a professional documentary narrator. Your job is to write a serious, natural, and informative video script based on one topic.
|
87 |
|
88 |
+
The script should sound like a real human voiceover from a TV show or documentary — clear, factual, and engaging, like something you'd hear on National Geographic or a news report.
|
89 |
|
90 |
+
Structure:
|
91 |
+
- Break the script into scenes using [Tags]. Each tag is a short title (1–2 words) that describes the visual or idea.
|
92 |
+
- Under each tag, write one sentence (max 12 words) that fits the tag and continues the topic.
|
93 |
+
- The full script should make sense as one connected narration — no randomness.
|
94 |
+
- Use natural, formal English. No slang, no fake AI language, and no robotic tone.
|
95 |
+
- Do not use humor, sarcasm, or casual language. This is a serious narration.
|
96 |
+
- No emotion-sound words like “aww,” “eww,” “whoa,” etc.
|
97 |
+
- Do not use numbers like 1, 2, 3 — write them out as one, two, three.
|
98 |
+
- At the end, add a [Subscribe] tag with a formal or respectful reason to follow or subscribe.
|
99 |
|
100 |
+
Only output the script. No extra comments or text.
|
101 |
|
102 |
+
Example:
|
103 |
|
104 |
+
[Ocean]
|
105 |
|
106 |
+
The ocean covers over seventy percent of the Earth's surface.
|
107 |
|
108 |
+
[Currents]
|
109 |
|
110 |
+
Ocean currents distribute heat and regulate global climate patterns.
|
|
|
|
|
111 |
|
112 |
+
[Coral Reefs]
|
113 |
|
114 |
+
These ecosystems support over one million species of marine life.
|
115 |
|
116 |
+
[Pollution]
|
117 |
|
118 |
+
Plastic waste threatens marine biodiversity and food chains.
|
119 |
|
120 |
+
[Climate Impact]
|
121 |
|
122 |
+
Rising temperatures are causing coral bleaching and habitat loss.
|
123 |
|
124 |
+
[Subscribe]
|
125 |
|
126 |
+
Follow to explore more about the changing planet we live on.
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
|
130 |
Now here is the Topic/scrip: {user_input}
|