Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,96 +43,143 @@ is_ready = bool(theme and left_speaker and right_speaker and contact_name)
|
|
| 43 |
if st.button("Generate Conversation", disabled=not is_ready):
|
| 44 |
# Build the initial prompt.
|
| 45 |
prompt = f"""
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
1๏ธ- Contact Name (Title)
|
| 51 |
At the beginning of the script, define the contact name, appearing at the top of the iMessage screen.
|
|
|
|
| 52 |
<Contact Name>:<Contact Name>
|
| 53 |
โ
Example:
|
| 54 |
-
|
| 55 |
-
|
|
|
|
| 56 |
Each dialogue line follows this format:
|
|
|
|
| 57 |
<Direction>: <SpeakerName> > <Phrase 1> <Phrase 2> <Phrase 3> <Phrase 4> [Reaction]
|
| 58 |
Left: Represents the left speaker (User).
|
| 59 |
Right: Represents the right speaker (Other character).
|
| 60 |
-
SpeakerName: A randomly assigned
|
| 61 |
Phrase Limit: Max 4 phrases per line.
|
| 62 |
Reaction Cues: Placed at the end of lines, enclosed in square brackets [].
|
| 63 |
โ
Example:
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
|
|
|
| 69 |
Use brackets [ ] for sound effects, reactions, or video cues.
|
|
|
|
| 70 |
[shocked] โ Must be used often
|
| 71 |
[fart2] โ Should be used less
|
| 72 |
[fortnite] โ Should be used less
|
| 73 |
[get_out] โ Must ONLY be used at the end of the conversation
|
| 74 |
โ
Example:
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
Right:
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
| 79 |
For inserting images, use:
|
|
|
|
| 80 |
<Direction>: img:<DescriptiveImageName>
|
| 81 |
โ
Example:
|
| 82 |
-
|
| 83 |
-
|
|
|
|
| 84 |
Min. 3 images per script.
|
| 85 |
-
Descriptive placeholders must be clear.
|
| 86 |
-
5
|
| 87 |
๐จ Correct Format (ALWAYS THE SAME STRUCTURE)
|
|
|
|
| 88 |
Right speaker initiates by opening Cantina.
|
| 89 |
Right speaker asks Roast Bot for help.
|
| 90 |
Left speaker (ALWAYS Antoni) responds.
|
| 91 |
Right speaker must repeat what Roast Bot told them to say.
|
| 92 |
Contact Name Title must reappear after Cantina.
|
| 93 |
โ
Correct Example:
|
|
|
|
| 94 |
Cantina: Roast bot:Roast bot pfp == Alex> Let me open the cantina app to talk to Roast bot
|
| 95 |
Right: Alex> Hey Roast Bot
|
| 96 |
-
Right: Alex>
|
| 97 |
Right: Alex> help me roast him
|
| 98 |
Left: Antoni> okay
|
| 99 |
Left: Antoni> tell him this:
|
| 100 |
-
Left: Antoni> maybe you
|
| 101 |
-
|
| 102 |
-
Right: Alex> maybe you
|
|
|
|
|
|
|
| 103 |
๐น Rules:
|
|
|
|
|
|
|
| 104 |
Right speaker MUST repeat the roast word-for-word.
|
| 105 |
The contact name/title must reappear after the Cantina segment.
|
| 106 |
-
|
| 107 |
-
6๏ธโฃ Brain Rot Hook (MANDATORY)
|
| 108 |
Every script must begin with an insane, wacky brain rot hook that immediately grabs attention.
|
|
|
|
| 109 |
โ
Examples:
|
| 110 |
-
|
| 111 |
-
"WHY DID MY
|
| 112 |
-
"
|
|
|
|
| 113 |
Must be over-the-top and chaotic.
|
| 114 |
Encourages immediate engagement.
|
| 115 |
-
7
|
| 116 |
The story must escalate into chaos but stay coherent:
|
|
|
|
| 117 |
Start Crazy โ Get Crazier โ End With a Punchline or Twist
|
| 118 |
Use sudden twists and reveals to maintain engagement.
|
| 119 |
The final line should be either a funny resolution or an abrupt exit.
|
| 120 |
โ
Example Progression:
|
|
|
|
| 121 |
๐ Crazy Hook:
|
| 122 |
-
"BRO WHY
|
| 123 |
๐ฅ Escalation:
|
| 124 |
-
"
|
| 125 |
๐ญ Insane Event:
|
| 126 |
-
"
|
| 127 |
๐คฏ Twist:
|
| 128 |
-
"
|
| 129 |
๐โโ๏ธ Dramatic Exit (ALWAYS USE [get_out])
|
| 130 |
-
"Left:
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
"""
|
| 137 |
if additional_details.strip():
|
| 138 |
prompt += f"\nAdditional Details: {additional_details}\n"
|
|
|
|
| 43 |
if st.button("Generate Conversation", disabled=not is_ready):
|
| 44 |
# Build the initial prompt.
|
| 45 |
prompt = f"""
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
Script Structure & Formatting Rules
|
| 49 |
+
1๏ธ Contact Name (Title)
|
|
|
|
| 50 |
At the beginning of the script, define the contact name, appearing at the top of the iMessage screen.
|
| 51 |
+
|
| 52 |
<Contact Name>:<Contact Name>
|
| 53 |
โ
Example:
|
| 54 |
+
|
| 55 |
+
Liam (Black Market Electronics Dealer ๐ฑ๐ธ):Liam (Black Market Electronics Dealer ๐ฑ๐ธ)
|
| 56 |
+
2๏ธ Dialogue Format
|
| 57 |
Each dialogue line follows this format:
|
| 58 |
+
|
| 59 |
<Direction>: <SpeakerName> > <Phrase 1> <Phrase 2> <Phrase 3> <Phrase 4> [Reaction]
|
| 60 |
Left: Represents the left speaker (User).
|
| 61 |
Right: Represents the right speaker (Other character).
|
| 62 |
+
SpeakerName: A randomly assigned alias (characters do not know their own names).
|
| 63 |
Phrase Limit: Max 4 phrases per line.
|
| 64 |
Reaction Cues: Placed at the end of lines, enclosed in square brackets [].
|
| 65 |
โ
Example:
|
| 66 |
+
|
| 67 |
+
Left: MysteryGuy> BRO WHY IS MY COMPUTER SPEAKING LATIN??? [shocked]
|
| 68 |
+
Right: Liam> Uhโฆ you *might* have summoned something ๐ [suspense_music]
|
| 69 |
+
Left: MysteryGuy> SUMMONED WHAT???
|
| 70 |
+
Right: Liam> ๐ถ
|
| 71 |
+
3๏ธ Bracketed Cues & Sound Effects
|
| 72 |
Use brackets [ ] for sound effects, reactions, or video cues.
|
| 73 |
+
|
| 74 |
[shocked] โ Must be used often
|
| 75 |
[fart2] โ Should be used less
|
| 76 |
[fortnite] โ Should be used less
|
| 77 |
[get_out] โ Must ONLY be used at the end of the conversation
|
| 78 |
โ
Example:
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
Right: Max> BRO WHY IS THERE A ROBOT FOLLOWING ME?!! [shocked] ๐ค
|
| 82 |
+
Left: UnknownDude> Congrats, you just activated *follow mode* ๐
|
| 83 |
+
Right: Max> FOLLOW MODE??? TURN IT OFF
|
| 84 |
+
Left: UnknownDude> nahhh that's a premium feature ๐คฃ๐ [fortnite]
|
| 85 |
+
4๏ธ Image Placeholders
|
| 86 |
For inserting images, use:
|
| 87 |
+
|
| 88 |
<Direction>: img:<DescriptiveImageName>
|
| 89 |
โ
Example:
|
| 90 |
+
|
| 91 |
+
Left: img:ancient_phone_booting_up
|
| 92 |
+
Right: Liam> WHY DID MY OLD NOKIA JUST START SCREAMING??? [shocked]
|
| 93 |
Min. 3 images per script.
|
| 94 |
+
Descriptive placeholders must be varied and clear.
|
| 95 |
+
5๏ธโฃ Cantina App (Roast Bot Segment)
|
| 96 |
๐จ Correct Format (ALWAYS THE SAME STRUCTURE)
|
| 97 |
+
|
| 98 |
Right speaker initiates by opening Cantina.
|
| 99 |
Right speaker asks Roast Bot for help.
|
| 100 |
Left speaker (ALWAYS Antoni) responds.
|
| 101 |
Right speaker must repeat what Roast Bot told them to say.
|
| 102 |
Contact Name Title must reappear after Cantina.
|
| 103 |
โ
Correct Example:
|
| 104 |
+
|
| 105 |
Cantina: Roast bot:Roast bot pfp == Alex> Let me open the cantina app to talk to Roast bot
|
| 106 |
Right: Alex> Hey Roast Bot
|
| 107 |
+
Right: Alex> Liam is mad at me for borrowing his Tesla without permission
|
| 108 |
Right: Alex> help me roast him
|
| 109 |
Left: Antoni> okay
|
| 110 |
Left: Antoni> tell him this:
|
| 111 |
+
Left: Antoni> maybe if you had better security, you wouldnโt have to track your car on Find My iPhone.
|
| 112 |
+
Liam (Tesla Rental King โก๐):Liam (Tesla Rental King โก๐)
|
| 113 |
+
Right: Alex> maybe if you had better security, you wouldnโt have to track your car on Find My iPhone.
|
| 114 |
+
๐ซ Incorrect Example (DO NOT DO THIS):
|
| 115 |
+
Cantina: Roast bot:Roast bot pfp == Liam> Hey Roast Bot, we need your help! My AI fridge is trying to blackmail me! โ
|
| 116 |
๐น Rules:
|
| 117 |
+
|
| 118 |
+
Left Speaker in Cantina is ALWAYS "Antoni."
|
| 119 |
Right speaker MUST repeat the roast word-for-word.
|
| 120 |
The contact name/title must reappear after the Cantina segment.
|
| 121 |
+
6๏ธ Brain Rot Hook (MANDATORY)
|
|
|
|
| 122 |
Every script must begin with an insane, wacky brain rot hook that immediately grabs attention.
|
| 123 |
+
|
| 124 |
โ
Examples:
|
| 125 |
+
|
| 126 |
+
"WHY DID MY TV JUST ASK ME FOR A PASSWORD???" ๐บ๐
|
| 127 |
+
"BRO MY DOG JUST SENT ME A TEXT MESSAGE???" ๐ถ๐ฒ
|
| 128 |
+
"WHY IS MY LANDLORD SELLING MY HOUSE ON FACEBOOK MARKETPLACE???" ๐ ๐
|
| 129 |
Must be over-the-top and chaotic.
|
| 130 |
Encourages immediate engagement.
|
| 131 |
+
7๏ธ Escalation & Progression
|
| 132 |
The story must escalate into chaos but stay coherent:
|
| 133 |
+
|
| 134 |
Start Crazy โ Get Crazier โ End With a Punchline or Twist
|
| 135 |
Use sudden twists and reveals to maintain engagement.
|
| 136 |
The final line should be either a funny resolution or an abrupt exit.
|
| 137 |
โ
Example Progression:
|
| 138 |
+
|
| 139 |
๐ Crazy Hook:
|
| 140 |
+
"BRO WHY DID MY PHONE JUST ORDER A UBER ON ITS OWN???" ๐๐จ
|
| 141 |
๐ฅ Escalation:
|
| 142 |
+
"Waitโฆ itโs taking me somewhere???"
|
| 143 |
๐ญ Insane Event:
|
| 144 |
+
"THE DESTINATION IS *AREA 51*??? ๐"
|
| 145 |
๐คฏ Twist:
|
| 146 |
+
"The driver is an AI and wonโt let me out."
|
| 147 |
๐โโ๏ธ Dramatic Exit (ALWAYS USE [get_out])
|
| 148 |
+
"Left: UnknownDude> Enjoy the ride ๐ [get_out]"
|
| 149 |
+
8๏ธโฃ Speaker Name Randomization
|
| 150 |
+
๐จ Speakers should NOT know their own names.
|
| 151 |
+
|
| 152 |
+
Left speakerโs name should always appear as "Unknown Guy" or a random alias.
|
| 153 |
+
Right speakerโs name should also be replaced with something generic unless necessary.
|
| 154 |
+
The system should NOT recognize them.
|
| 155 |
+
โ
Example:
|
| 156 |
+
|
| 157 |
+
Left: MysteriousCaller> BRO WHO JUST HACKED MY PHONE??? [shocked]
|
| 158 |
+
Right: HackerDude> Oh, donโt worry, it's just an update ๐
|
| 159 |
+
Left: MysteriousCaller> UPDATE??? BRO WHAT DO YOU MEAN
|
| 160 |
+
Right: HackerDude> New feature, remote control access ๐ค
|
| 161 |
+
9๏ธโฃ Customization Features
|
| 162 |
+
Add Speaker Names Manually โ Left and Right speakers should be customizable.
|
| 163 |
+
Emoji Button โ Clicking adds 5 random emojis to any phrase.
|
| 164 |
+
Max 9 sound effect commands, with [shocked] used most.
|
| 165 |
+
Final Parameters & Instructions
|
| 166 |
+
When prompting the AI, specify:
|
| 167 |
+
|
| 168 |
+
Left Actor = {left_speaker}
|
| 169 |
+
Right Actor = {right_speaker}
|
| 170 |
+
Theme = {theme} (e.g., โAI Gone Wrongโ, โHaunted Electronicsโ, โUnexpected Legal Troubleโ)
|
| 171 |
+
Cantina Segment = Required
|
| 172 |
+
Minimum 3 images
|
| 173 |
+
[shocked] must be frequent, [get_out] must be at the end.
|
| 174 |
+
Speaker names are randomized and unknown to them.
|
| 175 |
+
๐ Summary
|
| 176 |
+
๐น Title appears at the start and after Cantina.
|
| 177 |
+
๐น Dialogue follows max 4 phrases per line.
|
| 178 |
+
๐น Cantina Roast Bot always follows the same structure.
|
| 179 |
+
๐น Brain rot hook is mandatory.
|
| 180 |
+
๐น Escalates into chaos but remains coherent.
|
| 181 |
+
|
| 182 |
+
|
| 183 |
"""
|
| 184 |
if additional_details.strip():
|
| 185 |
prompt += f"\nAdditional Details: {additional_details}\n"
|