Create prompts.py
Browse files- prompts.py +33 -0
prompts.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# prompts.py
|
| 2 |
+
|
| 3 |
+
# Prompt template for summarizing Guardian articles
|
| 4 |
+
SUMMARY_PROMPT = (
|
| 5 |
+
"Summarize this Guardian article in 30-60 words:\n\n"
|
| 6 |
+
"{article_text}\n\n"
|
| 7 |
+
"SUMMARY:"
|
| 8 |
+
)
|
| 9 |
+
|
| 10 |
+
# Prompt template for selecting a meme template and generating caption text
|
| 11 |
+
MEME_PROMPT = (
|
| 12 |
+
"I want to summarize this news in a meme. "
|
| 13 |
+
"Choose the best template among the following options and tell me what to say in both textboxes for whatever option you choose:\n\n"
|
| 14 |
+
"1. Drake Hotline Bling\n"
|
| 15 |
+
"2. UNO Draw 25 Cards\n"
|
| 16 |
+
"3. Bernie Asking For Support\n"
|
| 17 |
+
"4. Disaster Girl\n"
|
| 18 |
+
"5. Waiting Skeleton\n"
|
| 19 |
+
"6. Always Has Been\n"
|
| 20 |
+
"7. Woman Yelling at Cat\n"
|
| 21 |
+
"8. I Bet He's Thinking About Other Women\n"
|
| 22 |
+
"9. One Does Not Simply\n"
|
| 23 |
+
"10. Success Kid\n"
|
| 24 |
+
"11. Oprah You Get A\n"
|
| 25 |
+
"12. Hide the Pain Harold\n\n"
|
| 26 |
+
"Remember you can only give two text boxes and keep them 6-8 words each. "
|
| 27 |
+
"This might affect your choice of meme. "
|
| 28 |
+
"Provide the output prefaced with `text0:` and `text1:` respectively, "
|
| 29 |
+
"and also on a separate line `template:` with your chosen template name.\n\n"
|
| 30 |
+
"ARTICLE SUMMARY:\n"
|
| 31 |
+
"{summary}\n\n"
|
| 32 |
+
"Meme output:\n"
|
| 33 |
+
)
|