Coder Social home page Coder Social logo

gemini-q-and-a's Introduction

Penny App Backend

This FastAPI application is a backend part of the penny app,it generates finance-related questions using the Gemini 1.5 Flash API.

Setup

Clone the Repository

git clone <repository-url>
cd <repository-directory>
Install Dependencies
bash
Copy code
pip install fastapi google-generativeai python-dotenv uvicorn
Set Up Environment Variables
Create a .env file and add your Gemini API key:

makefile
Copy code
GEMINI_API_KEY=your_api_key
Endpoints
Root Endpoint
GET /

Provides a welcome message and available chapters.

Generate Questions
GET /generate_questions/{chapter}

Generates 5 finance-related questions for the specified chapter.

Available Chapters:

introduction_to_personal_finance
setting_financial_goals
budgeting_and_expense_tracking
online_and_mobile_banking
Testing
This application has been tested using Postman.

Running the Application:

Start the FastAPI application with:

In bash:

uvicorn main:app --host 0.0.0.0 --port 8000

Ensure you have the GEMINI_API_KEY set in your environment variables before running the app.

gemini-q-and-a's People

Contributors

crs7617 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.