8000 GitHub - Yamobura/WeatherWise: WeatherWise app: AI styling assistant
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Yamobura/WeatherWise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherWise

WeatherWise is a web application that provides weather-appropriate outfit suggestions based on current weather conditions. It combines weather data with AI-powered outfit recommendations and generates visual representations of suggested outfits.

Tech Stack

Frontend

  • Vue.js
  • Tailwind CSS

Backend

  • FastAPI
  • OpenAI API (GPT-4)
  • Stable Diffusion
  • OpenWeatherMap API

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/Yamobura/WeatherWise.git
cd WeatherWise
  1. Set up the backend:
cd backend
python -m venv venv
# On Windows Command Prompt:
.\venv\Scripts\activate.bat
# On Unix or MacOS:
source venv/bin/activate

pip install -r requirements.txt
  1. Set up the frontend:
cd frontend
npm install
  1. Configure API keys:
    • Create backend/app/config.py with your API keys:
    OPENAI_API_KEY = 'your-openai-api-key'
    WEATHER_API_KEY = 'your-weather-api-key'
    WEBUI_SERVER_URL = 'http://127.0.0.1:7860'

Running the Application

  1. Start the Stable Diffusion Web UI:
cd stable-diffusion-webui
webui.bat --api
  1. Start the backend server:
cd backend
uvicorn app.main:app --reload
  1. Start the frontend development server:
cd frontend
npm run dev
  1. Open your browser and navigate to http://localhost:5173

Usage

  1. Enter a city name or use your current location
  2. The app will fetch current weather conditions
  3. Based on the weather, you'll receive:
    • A detailed weather overview
    • An AI-generated outfit suggestion
    • A visual representation of the suggested outfit

API Endpoints

  • GET /weather - Get weather data for a location
  • GET /chatgpt - Generate outfit suggestions
  • GET /imagegeneration - Generate outfit visualization

About

WeatherWise app: AI styling assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0