NaNoGenMo / 2023

National Novel Generation Month, 2023 edition.
27 stars 2 forks source link

Diary of a Virtual Trip (with Google Maps Data) #33

Open arnicas opened 9 months ago

arnicas commented 9 months ago

This project uses Google Maps APIs (Places & Streetview) to construct a pretty random trip to a city and then turns it into a diary. It includes pictures you "took." It turns reviews of businesses into journal entries filtered through a lens of your reason for being there.

There are some structuring procgen pieces, like morale and money and changing weather that control aspects of the trip. LLM output is controlled chunks, like rewriting the business review, summarizing your trip, creating mini connective text and social media posts based on the weather & morale values.

The code is a horrible notebook with spaghetti right now, which needs a solid refactor, sorry. It also requires 2 API keys (Google APIs and GPT4 because I couldn't get PALM to obey enough).

Repo

Word count on Barcelona version: 56K if you include the images as 1000 words.

Samples:

I'll add more details but the repo has some too. Here's a comparison of the original review text, the clever GPT4 product-placementy spin on it (you're searching for a missing person) and the one-liner you post to social media in the middle of your mission (via PALM). It's also very funny. Berlin Hotel Example


Some screenshots of draft bits I found funny too --

Screenshot 2023-11-30 at 11 03 43 AM

Screenshot 2023-11-30 at 3 58 41 PM
arnicas commented 9 months ago

The comparison between original review, re-written by GPT4 to include your reason for being there, and the PALM social media post version.

Screenshot-nano-output-comparison-berlin