abdulllah01 commited on
Commit
8f393c2
ยท
verified ยท
1 Parent(s): 5b0ea37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +153 -1
app.py CHANGED
@@ -41,7 +41,159 @@ if st.button("Generate Conversation"):
41
  # Build the prompt message for Groq API.
42
  prompt = (
43
  f"""
44
- {os.environ.get("PROMPT")}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  Left Actor={left_speaker}
46
  Right Actor={right_speaker}
47
  Theme={theme}
 
41
  # Build the prompt message for Groq API.
42
  prompt = (
43
  f"""
44
+ Objective:
45
+ Generate a highly engaging and comedic iMessage chat script formatted for video generation. The script should use distinct left and right voices, follow a structured format, and maintain a brain rot hook to keep the audience engaged. The story should be wacky, over-the-top, and meme-inspired while staying coherent.
46
+
47
+ 1. FORMAT STRUCTURE (Regex-like Guide)
48
+ 1.1 Contact Name (Title)
49
+ At the beginning of the script, define the contact name (the name that appears at the top of the iMessage screen).
50
+
51
+ php-template
52
+ Copy
53
+ Edit
54
+ <Contact Name>:<Contact Name>
55
+ Example:
56
+ ruby
57
+ Copy
58
+ Edit
59
+ Amir Uber Eats๐Ÿ”๐Ÿšš๐Ÿ—ฟ:Amir Uber Eats๐Ÿ”๐Ÿšš๐Ÿ—ฟ
60
+ 1.2 Dialogue Format
61
+ Every dialogue line should follow this structure:
62
+
63
+ php-template
64
+ Copy
65
+ Edit
66
+ <Direction>: <SpeakerName> > <Dialogue> [<Reaction>]
67
+ <Direction> โ†’ Either Left: or Right:
68
+ Left: represents the left speaker (User).
69
+ Right: represents the right speaker (Other character).
70
+ <SpeakerName> โ†’ The voice actor name (which should remain consistent for left and right).
71
+ > โ†’ A separator between the speaker name and their dialogue.
72
+ <Dialogue> โ†’ The actual speech text, containing humor, slang, or randomness.
73
+ [<Reaction>] (Optional) โ†’ Emotional or sound-based cues (e.g., [shocked], [fart2], [get_out]).
74
+ Example:
75
+ vbnet
76
+ Copy
77
+ Edit
78
+ Left: Chinmay> Sir this is your Uber Eats order [shocked]
79
+ Right: Alex> BRO WHY IS THERE A RAT IN MY BURGER?!! [shocked] ๐Ÿ€๐Ÿ”
80
+ Left: Chinmay> Extra protein sir ๐Ÿ˜Ž
81
+ 1.3 Bracketed Cues & Sound Effects
82
+ Use brackets [] to include sound effects, reactions, or video cues.
83
+
84
+ Common Examples:
85
+
86
+ [shocked] โ†’ Indicates the character is shocked.
87
+ [get_out] โ†’ Indicates the end of the conversation or dramatic exit.
88
+ [fart2] โ†’ Represents a comedic fart sound.
89
+ [suspense_music] โ†’ A cue for background music.
90
+ [explosion] โ†’ A big moment or reveal.
91
+ [slow_zoom] โ†’ A slow zoom-in effect for emphasis.
92
+ Example:
93
+ css
94
+ Copy
95
+ Edit
96
+ Right: Alex> WHY DID MY HOUSE JUST EXPLODE?!!! [explosion] ๐Ÿ’€๐Ÿ’€๐Ÿ’€
97
+ 1.4 Image Placeholders
98
+ Images should be inserted where necessary using:
99
+
100
+ php-template
101
+ Copy
102
+ Edit
103
+ <Direction>: img:<DescriptiveImageName>
104
+ <DescriptiveImageName> โ†’ Describe the image clearly for easy attachment later.
105
+ Example:
106
+ vbnet
107
+ Copy
108
+ Edit
109
+ Left: img:burnt_food_delivery
110
+ Right: Alex> BRO WHY IS MY PIZZA LOOKING LIKE CHARCOAL?!! [shocked]
111
+ 1.5 Special Sections (Cantina App / Roast Bot)
112
+ Incorporate Roast Bot mechanics where the character opens an app mid-conversation to ask for a roast.
113
+
114
+ Format:
115
+
116
+ vbnet
117
+ Copy
118
+ Edit
119
+ Cantina: Roast bot:Roast bot pfp == <Speaker> Let me open the cantina app to talk to Roast bot
120
+ Then, the roast bot provides a response.
121
+
122
+ Example:
123
+ vbnet
124
+ Copy
125
+ Edit
126
+ Cantina: Roast bot:Roast bot pfp == Alex> Let me open the cantina app to talk to Roast bot
127
+ Right: Alex> This guy just delivered my food and scammed me ๐Ÿ˜ก
128
+ Left: Antoni> Tell him this: "Sir, you pay less than a dollar tip and expect a five-star service?"
129
+ Right: Alex> YOU DID ME DIRTY BRO ๐Ÿ˜ญ๐Ÿ˜ญ
130
+ 2. STORY GENERATION GUIDELINES
131
+ 2.1 Catchy โ€œBrain Rotโ€ Hook
132
+ The first few lines must be highly engaging, over-the-top, and create curiosity.
133
+ Examples:
134
+
135
+ "BRO I JUST ORDERED UBER EATS AND THIS GUY SHOWED UP IN A SPACESHIP???" ๐Ÿš€๐Ÿ‘€
136
+ "WHY DID MY DAD JUST SAY HE WANTS TO PLAY GTA WITH ME???" ๐ŸŽฎ๐Ÿ’€
137
+ "SIR WHY IS MY LAWYER ALSO MY UBER DRIVER?!" ๐Ÿ‘จโ€โš–๏ธ๐Ÿš—๐Ÿ’จ
138
+ This hook should create an instant โ€œWTF?!โ€ reaction and force the reader to keep watching.
139
+
140
+ 2.2 Story Progression (Random but Coherent)
141
+ The storyline must escalate in craziness but still have a logical flow.
142
+ Use sudden twists and reveals to keep the audience engaged.
143
+ End with a memorable punchline, twist, or dramatic exit.
144
+ Example Storyline Flow:
145
+ Crazy Hook: โ€œBRO WHY IS MY PIZZA DELIVERY GUY ALSO MY LAWYER???โ€ ๐Ÿ•๐Ÿ‘จโ€โš–๏ธ
146
+ Escalation: The lawyer admits he took the case without reading it.
147
+ Insane Event: The customer confesses to stealing a fighter jet.
148
+ Twist: Lawyer says, โ€œOh I do that every day, sir.โ€ ๐Ÿ˜Ž
149
+ Final Joke/Twist: The lawyer wins the case in 5 seconds and gets a $2 tip.
150
+ 2.3 Humor & Slang
151
+ Use casual meme-inspired language (brain rot humor).
152
+ Include exaggerated reactions (e.g., "BROOO ๐Ÿ’€๐Ÿ’€๐Ÿ’€", "NO WAY", "HELP ME").
153
+ Use text formatting like uppercase for dramatic lines.
154
+ Example:
155
+ vbnet
156
+ Copy
157
+ Edit
158
+ Right: Alex> BRO WTF IS THIS BURGER?! [shocked]
159
+ Left: Chinmay> Sir, it's called a **mystery meat special** ๐Ÿ˜Ž
160
+ Right: Alex> MYSTERY??? FROM WHAT ANIMAL?!?!
161
+ Left: Chinmay> ๐Ÿ˜ถ
162
+ 3. PARAMETERS & CUSTOMIZATION OPTIONS
163
+ When prompting the AI, specify the following:
164
+
165
+ Left and Right Voice Actors โ†’ Who will play each side (e.g., AI voice "John" for left, "Jake" for right).
166
+ Story Theme โ†’ Choose a base premise (e.g., "Uber Eats Disaster", "Courtroom Chaos", "Dad Discovers GTA").
167
+ Roast Bot Usage โ†’ Include or exclude Roast Bot mechanics.
168
+ Emphasis on Images โ†’ How often to generate img: placeholders.
169
+ Tone Adjustment โ†’ More meme-heavy or slightly structured comedy.
170
+ 4. EXAMPLE PROMPT FOR AI MODEL
171
+ Input Example for AI Model:
172
+
173
+ markdown
174
+ Copy
175
+ Edit
176
+ Generate an iMessage chat script in this exact format:
177
+
178
+ - Contact Name: โ€œAlexโ€™s Lawyer๐Ÿ’€โš–๏ธโ€
179
+ - Left Voice: โ€œChinmay (Uber Eats Guy)โ€
180
+ - Right Voice: โ€œAlex (Customer)โ€
181
+ - Theme: โ€œA lawyer who took the case without reading it.โ€
182
+ - Must start with a **crazy brain rot hook**.
183
+ - Must include [shocked], [suspense_music], and [explosion] effects.
184
+ - Must include **at least 3 images** with descriptive placeholders.
185
+ - Include **Roast Bot mechanics**.
186
+
187
+ The dialogue should be **random, funny, and full of unexpected twists** while following the format strictly.
188
+ 5. FINAL SUMMARY OF FORMATTING
189
+ Title: <Contact Name>:<Contact Name>
190
+ Dialogue: <Direction>: <Speaker> > <Dialogue> [<Reaction>]
191
+ Image Placeholder: <Direction>: img:<DescriptiveImageName> [== <Reaction>]
192
+ Cantina App (Roast Bot): Cantina: Roast bot:Roast bot pfp == <Speaker> <Dialogue>
193
+ Hooks: Use crazy, meme-heavy openers.
194
+ Storyline: Escalates into chaos but stays coherent.
195
+ Tone: Casual, funny, meme-heavy, with emojis and sound effects.
196
+
197
  Left Actor={left_speaker}
198
  Right Actor={right_speaker}
199
  Theme={theme}