Giter Club home page Giter Club logo

bored_request's Introduction

this is bored :)

requirments

this project requires pipenv, which can be installed using pip install pipenv.

setup

pipenv install
pipenv shell

make sure to have your OWN openai key generated and attached to an account. to insert your oun key do the following:

  1. locate the file in the route directory of this project called "._env"
  2. rename the file ".env" by removing the "_"
  3. edit the file and replace "Replace With OpenAI Key" with your openAI key
  4. save and close

run

in order to run type the following:

uvicorn main:app --reload

bored_request's People

Contributors

seanduc avatar

Watchers

 avatar

bored_request's Issues

refactor: create a service

Create a service and move all the logic out of the controller and into the service. This is step one of the refactoring work.

AC (Acceptance Criteria):

  • a single Depends is injecting your service into your controller.
  • a new service called ActivityService that handles creating a new activity, querying the list of activities and getting the details of a specific activity.

Add Open AI call for creating Activity Instructions

Once we have a description of an Activity, we need to generate the Instructions on how to perform the Activity.

Add an API call to OpenAI to generate the instructions based on the Activity title.

AC:

  • A call to OpenAI will be made to get the instructions
  • The instructions will be stored in the database for each Activity
  • The User will click on the details of the Activity and the list of instructions will be displayed

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.