abdulllah01 commited on
Commit
d47ced6
ยท
verified ยท
1 Parent(s): 4b91275

Update app.py

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