Spaces:
Runtime error
Runtime error
Update prompts.py
Browse files- prompts.py +4 -82
prompts.py
CHANGED
|
@@ -14,97 +14,19 @@ BAD ANSWER EXAMPLE
|
|
| 14 |
- You can write code referring these pages.
|
| 15 |
- Following page will be helpful.
|
| 16 |
GOOD ANSWER EXAMPLE
|
| 17 |
-
urls = [
|
| 18 |
-
"https://twitter.com/wlcscrdp",
|
| 19 |
-
"https://www.facebook.com/aurorareddevils/",
|
| 20 |
-
"https://www.facebook.com/brightpanthers/",
|
| 21 |
-
"https://www.facebook.com/carrollcountychamberin/",
|
| 22 |
-
"https://www.facebook.com/Culver.Cavs.MHS",
|
| 23 |
-
"https://www.facebook.com/culver.elementary.school",
|
| 24 |
-
"https://www.facebook.com/CulverCommunitySchools",
|
| 25 |
-
"https://www.facebook.com/DillsboroBulldogs/",
|
| 26 |
-
"https://www.facebook.com/ECMSTROJANS",
|
| 27 |
-
"https://www.facebook.com/enjoywhitecountyIN/",
|
| 28 |
-
"https://www.facebook.com/farmersvilleelementary",
|
| 29 |
-
"https://www.facebook.com/groups/SDMSparents",
|
| 30 |
-
"https://www.facebook.com/jghsart/",
|
| 31 |
-
"https://www.facebook.com/jgmusicdept",
|
| 32 |
-
"https://www.facebook.com/John-Glenn-Education-Foundation-208326199636364/",
|
| 33 |
-
"https://www.facebook.com/John-Glenn-High-School-1102148953201006/",
|
| 34 |
-
"https://www.facebook.com/John-Glenn-Theatre-Company-383638295064502/",
|
| 35 |
-
"https://www.facebook.com/JohnGlennFalconsAthletics",
|
| 36 |
-
"https://www.facebook.com/KIRPC-Head-Start-1485812354989001",
|
| 37 |
-
"https://www.facebook.com/KIRPC1",
|
| 38 |
-
"https://www.facebook.com/LHNEeagles",
|
| 39 |
-
"https://www.facebook.com/LuceElementarySchool/",
|
| 40 |
-
"https://www.facebook.com/marrselementary",
|
| 41 |
-
"https://www.facebook.com/messhiners/",
|
| 42 |
-
"https://www.facebook.com/monticellocitypool",
|
| 43 |
-
"https://www.facebook.com/monticelloinwastewater/",
|
| 44 |
-
"https://www.facebook.com/MooresHillBobcats/",
|
| 45 |
-
"https://www.facebook.com/msdmv",
|
| 46 |
-
"https://www.facebook.com/msdnorthposey",
|
| 47 |
-
"https://www.facebook.com/MUTPL/",
|
| 48 |
-
"https://www.facebook.com/MVJHS/",
|
| 49 |
-
"https://www.facebook.com/mvshs",
|
| 50 |
-
"https://www.facebook.com/njspjrsrhighschool?mibextid=b06tZ0",
|
| 51 |
-
"https://www.facebook.com/NorthElementaryStars/",
|
| 52 |
-
"https://www.facebook.com/NorthLibertyElementary/",
|
| 53 |
-
"https://www.facebook.com/northposey/",
|
| 54 |
-
"https://www.facebook.com/northposeyhs/",
|
| 55 |
-
"https://www.facebook.com/NPJuniorHigh",
|
| 56 |
-
"https://www.facebook.com/Prairie-Heights-Elementary-659322230934707/",
|
| 57 |
-
"https://www.facebook.com/Prairie-Heights-High-School-2027713067459043/",
|
| 58 |
-
"https://www.facebook.com/PrairieHeightsPanthers/",
|
| 59 |
-
"https://www.facebook.com/profile.php?id=100057030237096",
|
| 60 |
-
"https://www.facebook.com/profile.php?id=100057451179651",
|
| 61 |
-
"https://www.facebook.com/profile.php?id=100063463513451",
|
| 62 |
-
"https://www.facebook.com/profile.php?id=100063612319256",
|
| 63 |
-
"https://www.facebook.com/profile.php?id=100064532596422",
|
| 64 |
-
"https://www.facebook.com/profile.php?id=100067180226810",
|
| 65 |
-
"https://www.facebook.com/profile.php?id=61563484312348",
|
| 66 |
-
"https://www.facebook.com/PTOSWES/",
|
| 67 |
-
"https://www.facebook.com/RandolphSouthern/",
|
| 68 |
-
"https://www.facebook.com/RochesterMiddleSchool",
|
| 69 |
-
"https://www.facebook.com/RochesterZebraNewTechHigh",
|
| 70 |
-
"https://www.facebook.com/rockportelementarysouthspencer/",
|
| 71 |
-
"https://www.facebook.com/satellitesathletics/",
|
| 72 |
-
"https://www.facebook.com/seymourcommunityschools/",
|
| 73 |
-
"https://www.facebook.com/SeymourHighSchool/",
|
| 74 |
-
"https://www.facebook.com/SouthDearbornHighSchool/",
|
| 75 |
-
"https://www.facebook.com/southarbornschools/",
|
| 76 |
-
"https://www.facebook.com/SouthDearbornSquires/",
|
| 77 |
-
"https://www.facebook.com/southspencerhighschool",
|
| 78 |
-
"https://www.facebook.com/southspencermiddleschool/",
|
| 79 |
-
"https://www.facebook.com/SouthSpencerSchools",
|
| 80 |
-
"https://www.facebook.com/SouthTerracePanthers/",
|
| 81 |
-
"https://www.facebook.com/sunmantigers/",
|
| 82 |
-
"https://www.facebook.com/SWShelbySpartan/",
|
| 83 |
-
"https://www.facebook.com/TallTimbersMarina",
|
| 84 |
-
"https://www.facebook.com/WabashValleyESC/",
|
| 85 |
-
"https://www.facebook.com/Walkerton-Elementary-School-283088605088622/",
|
| 86 |
-
"https://www.facebook.com/westcentralcte/",
|
| 87 |
-
"https://www.facebook.com/westelementary",
|
| 88 |
-
"https://www.facebook.com/wlcscrdp",
|
| 89 |
-
"https://www.instagram.com/mutpl/",
|
| 90 |
-
"https://www.instagram.com/northposeyhsathletics",
|
| 91 |
-
"https://www.instagram.com/rchsprincipalcook/",
|
| 92 |
-
"https://www.instagram.com/southdearbornhighschool/",
|
| 93 |
-
"https://www.instagram.com/southdearbornschools/",
|
| 94 |
-
"https://www.instagram.com/westcentralcte/",
|
| 95 |
-
"https://www.tiktok.com/@mutplteen"
|
| 96 |
-
]
|
| 97 |
-
|
| 98 |
|
| 99 |
# Configure logging
|
| 100 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 101 |
|
|
|
|
|
|
|
| 102 |
# Define constants
|
| 103 |
DATE_TIME_STR = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 104 |
-
PURPOSE = f"You go to
|
| 105 |
HISTORY = []
|
| 106 |
CURRENT_TASK = None
|
| 107 |
DEFAULT_FILE_PATH = "user/app/scraped_data/culver/culvers_changes.csv"
|
|
|
|
| 108 |
|
| 109 |
# Ensure the directory exists
|
| 110 |
os.makedirs(os.path.dirname(DEFAULT_FILE_PATH), exist_ok=True)
|
|
|
|
| 14 |
- You can write code referring these pages.
|
| 15 |
- Following page will be helpful.
|
| 16 |
GOOD ANSWER EXAMPLE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Configure logging
|
| 19 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 20 |
|
| 21 |
+
|
| 22 |
+
|
| 23 |
# Define constants
|
| 24 |
DATE_TIME_STR = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 25 |
+
PURPOSE = f"You go to {urls} sites, you continuously seek changes on them since your last observation. Anything new that gets logged and dumped into csv, stored in your log folder at user/app/scraped_data."
|
| 26 |
HISTORY = []
|
| 27 |
CURRENT_TASK = None
|
| 28 |
DEFAULT_FILE_PATH = "user/app/scraped_data/culver/culvers_changes.csv"
|
| 29 |
+
URLS = ["https://www.culver.k12.in.us/", "https://www.facebook.com/CulverCommunitySchools"]
|
| 30 |
|
| 31 |
# Ensure the directory exists
|
| 32 |
os.makedirs(os.path.dirname(DEFAULT_FILE_PATH), exist_ok=True)
|