Skip to content

Generate an optimal path on a map a la Traveling Salesman Problem to hit different landmarks in an input city using Cloudflare Workers AI (using LlaMA-3.1), LangChain (for prompt templates and comma separated list output parser), Mapbox to create a map and get information about cities and landmarks in those cities, and Folium to edit the map.

Notifications You must be signed in to change notification settings

elizabethsiegle/bike_walk_route_map_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROUTEME

Generate an optimal path on a map a la Traveling Salesman Problem to hit different landmarks in an input city using Cloudflare Workers AI (using LlaMA-3.1), LangChain (for prompt templates and comma separated list output parser), Mapbox to create a map and get information about cities and landmarks in those cities, and Folium to edit the map.

gif

  1. Enter a city🏙️ you wish to visit -> get a few must-visit landmarks in your chosen city
  2. Pick the landmarks🌁🗽 you want to visit.
  3. Generate the shortest path between these landmarks.
  4. Explore! 🗺️

You'll need

  • a Mapbox access token--get it here
  • your Cloudflare Account ID (the number/character sequence following https://dash.cloudflare.com/ when you login)
  • a Cloudflare Workers AI API key (in your Cloudflare account dashboard, click AI on the lefthand side under R2, then Use REST API, then Create a Workers AI API token)

Download the requirements.txt and run pip install. Some main libraries this app uses includes LangChain, markdown, pandas, geopy, requests, streamlit, streamlit_searchbox, folium, typing, uuid, streamlit_folium, and folium.plugins (among others.)

Run on the command line with streamlit run app.py.

About

Generate an optimal path on a map a la Traveling Salesman Problem to hit different landmarks in an input city using Cloudflare Workers AI (using LlaMA-3.1), LangChain (for prompt templates and comma separated list output parser), Mapbox to create a map and get information about cities and landmarks in those cities, and Folium to edit the map.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages