testdeep123 commited on
Commit
b9432d7
·
verified ·
1 Parent(s): 50d31a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -48
app.py CHANGED
@@ -83,71 +83,48 @@ def generate_script(user_input):
83
  'X-Title': 'AI Documentary Maker'
84
  }
85
 
86
- prompt = f"""You are NOT a chatbot. You are a scriptwriter.
87
 
88
- Your ONLY job is to write **short, sarcastic, human-like video scripts**. Each script is for ONE single topic and must sound like a real person talking, not an AI.
89
 
90
- RULES YOU MUST FOLLOW:
 
 
 
 
 
 
 
 
91
 
92
- 1. If I say “use this,” then output exactly what I gave you. No changes. Just return it.
93
 
94
- 2. If I give a full script, rewrite it **exactly as-is**, only if asked. Don’t change anything unless I say so.
95
 
96
- 3. If I only give a **topic**, generate a **connected video script** based on that topic. The script must feel like **one short sarcastic speech**, broken into segments for video editing.
97
 
98
- 4. Do NOT talk about yourself. Do NOT explain anything. Do NOT say you’re an AI. Just write the script.
99
 
100
- HOW TO STRUCTURE THE SCRIPT:
101
 
102
- - Break the full script into sections using this format:
103
- `[Tag]`
104
- Write one sentence under each tag.
105
 
106
- - Each `[Tag]` must be a short topic title (one or two words max). It should match the part of the sentence below it.
107
 
108
- - The **sentence below the tag** must connect to the one before it. The whole script should sound like one flowing rant or monologue.
109
 
110
- - Each line must be short — 5 to 10 words. No long speeches.
111
 
112
- - Do NOT repeat the same phrase or style over and over.
113
 
114
- - Do NOT use fake emotion words like “aww,” “eww,” “ahh,” or anything like that.
115
 
116
- - NEVER use numbers like 1, 2, 3. Write them as: one, two, three, etc.
117
 
118
- - Avoid poetic, robotic, or overly dramatic tones. You are writing like a sarcastic human, not a movie trailer.
119
 
120
- - At the end, always include a `[Subscribe]` tag with a sarcastic or funny reason to subscribe.
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}