https://github.com/elizabethsiegle/bike_walk_route_map_generator
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.
https://github.com/elizabethsiegle/bike_walk_route_map_generator
ai cloudflare cloudflare-workers-ai folium folium-maps langchain llama3-1 mapbox meta-llama-3-1-8b-instruct python streamlit workers-ai
Last synced: 8 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/elizabethsiegle/bike_walk_route_map_generator
- Owner: elizabethsiegle
- Created: 2024-09-03T23:27:09.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-03T22:57:21.000Z (7 months ago)
- Last Synced: 2025-04-16T15:14:48.162Z (11 days ago)
- Topics: ai, cloudflare, cloudflare-workers-ai, folium, folium-maps, langchain, llama3-1, mapbox, meta-llama-3-1-8b-instruct, python, streamlit, workers-ai
- Language: Python
- Homepage: https://routemetsp.streamlit.app/
- Size: 13.5 MB
- Stars: 5
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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.

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](https://docs.mapbox.com/help/getting-started/access-tokens/)
- 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`.