Skip to content

kimwoolina/llm_pjt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 

Repository files navigation

WeatherNow

A dynamic AI-powered platform that leverages OpenAI's GPT model and the Korea Meteorological Administration (KMA) API to provide not only real-time weather data but also versatile responses based on user queries. The platform offers both a chatbot interface for direct user interaction and API services for weather data retrieval. Users can query weather conditions, and the system will fetch the latest data from the KMA API and provide real-time, context-aware responses.


Duration

24.09.05 - 24.09.10


TechStack

  • Front-End

    • Language
      • HTML5
        • HTML5 Version
      • CSS3
        • CSS3 Version
  • Back-End

    • Language

      • Python
        • Python Version
    • Framework

      • Django
        • Django Version
    • Database & Caching

      • Redis
        • Redis Version
  • APIs

    • Language Model

      • OpenAI
        • OpenAI Version
    • Weather Data

      • KMA
        • KMA Version



Setup

To set up and run the project, follow these steps:

  1. Clone the project repository:

    git clone https://github.com/kimwoolina/llm_pjt.git
  2. Navigate to the project directory:

    cd /Users/YourPC/Your_Cloned_Folder/llm_pjt/
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Create and configure the config.py file:

    Create a file named config.py in the project root directory and add the following content:

    # config.py
    
    DJANGO_SECRET_KEY = "your_django_secret_key_here"
    
    OPENAI_API_KEY = "your_openai_api_key_here"
    
    # Weather API
    SERVICE_KEY = "your_weather_api_key_here"
  5. Configure the Django settings:

    Update the settings.py file in your Django project to include the configuration from config.py:

    from . import config
    
    SECRET_KEY = config.DJANGO_SECRET_KEY
    OPEN_API_KEY = config.OPENAI_API_KEY
    SERVICE_KEY = config.SERVICE_KEY
  6. Apply database migrations:

    python manage.py makemigrations
    python manage.py migrate
  7. Run the development server:

    python manage.py runserver
  8. Open your browser and visit:

    http://127.0.0.1:8000/



API Documentation

Name Endpoint Method Description
Weather Query /chatgpt/weather-chat/ GET Retrieves real-time weather data from the Weather API, enhanced by an LLM
Location Data /myapp/location-data/ GET Retrieves location data from an Excel file.



UI Screenshots

http://127.0.0.1:8000/index/ 스크린샷 2024-09-07 오전 5 00 10

스크린샷 2024-09-07 오전 5 04 05



Contacts

For any issues or inquiries, please contact kimwoolina@gmail.com