Giter Site home page Giter Site logo

akarmain / gpt-gift Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.45 MB

The site where you create a questionnaire with questions, send it to friends, and after completing the survey you receive a list of gifts generated by the ChatGPT-3.5 model.

Python 22.15% JavaScript 11.44% CSS 42.53% HTML 23.88%

gpt-gift's Introduction

Проект "GPT-gift"

Видео Пример
Видео демо


Цель

Предоставить пользователю сервис, на котором можно быстро создать голосование и собрать мнения пользователей касательно какого-либо вопроса.

Получилось: сайт, где вы создаете анкету с вопросами, отправляете её знакомым, и после прохождения опроса получаете список подарков, сформированный моделью ChatGPT-3.5.

Технологический стек:

  • ChatGPT 3.5+
  • Python 3.8+
  • Django 4.1+
  • SQLite 3.22+

Инструкция по настройке проекта:

0. Клонирование проекта

Склонируйте репозиторий проекта с помощью Git:

git clone https://github.com/akarmain/GPT-gift
cd GPT-gift

1. Создание виртуального окружения

Создайте виртуальное окружение:

python -m venv venv

Активируйте виртуальное окружение:

  • На Windows:
    venv\Scripts\activate
  • На macOS и Linux:
    source venv/bin/activate

2. Установка зависимостей

Установите необходимые пакеты в виртуальное окружение:

pip install -r requirements.txt

3. Создание уникального ключа приложения

Сгенерируйте уникальный секретный ключ для приложения и добавьте его в файл .env в переменную SECRET_KEY:

python manage.py shell -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"

4. Добавление ключа API ChatGPT

Добавьте ключ API ChatGPT в файл .env в переменную OPENAI_API_KEY.

5. Запуск сервера

Запустите сервер разработки:

python3 manage.py runserver

Спасибо, что читаете наш код!

gpt-gift's People

Contributors

akarmain avatar srx64 avatar egorbelova avatar kriptyashka avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.