Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Weather Poem

This project is a web application combines real-time weather data with AI. Users can search for a city, view the current weather conditions, and receive an AI generated poem that reflects the atmosphere of that location.

Tehcnologies Used

  • Frontend: HTML, CSS, Vanilla JavaScript = Backend: Node.js + Express
  • Weather Data: OpenWeatherMap API
  • AI Model: Replicate API using IBM Granite LLM
  • Deployment: Vercel

Features

  • Search bar to find city location
  • Display weather condition, temperature, and weather icon
  • AI generated poem based on location and weather condition

Setup Instruction

  1. Clone repository
  2. Open folder and open terminal and type "npm install express cors dotenv replicate node-fetch"
  3. Create a .env file that will contain "REPLICATE_API_TOKEN={enter your replicate api key}" and "WEATHERSAPI_TOKEN={your openweathermap api key}"
  4. To start the program type "npm start" on the terminal

This project integrates AI using Replicate API. The IBM Granite LLM is prompted with the user’s chosen location, and the current weather conditions of the chosen city. Based on this context, the model generates a short, atmospheric poem that reflects the “vibe” of the place.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages