GithubHelp home page GithubHelp logo

ai_application's Introduction

AI Application - README

This is a Streamlit-based web application that provides several AI-powered functionalities.

project try out here https://gptfunctions.streamlit.app/

Functions

The application provides the following functionalities:

Email Functions

  • Generate Emails: Generate a response email to an input email based on the specified tone and dialect.
  • Email Format: Convert a poorly-worded email to a properly formatted email based on the specified tone and dialect.

GPT Question

  • PDF input: Generate an answer to a question asked about a PDF document uploaded by the user.
  • txt input: Generate an answer to a question asked about a text document entered by the user.

Installation

This project is built using Python and requires the following packages to be installed:

  • Streamlit
  • langchain
  • openai
  • pinecone

After installing the dependencies, you can run the app using the following command:

streamlit run main.py

Usage

After running the command, the application will open in your web browser. You will need to input your OpenAI API Key to use the application. The app has two main functions, which are accessed through the sidebar. You can either use the Email Functions or the GPT Question functions.

Email Functions

The Email Functions consist of two sub-functions, Generate Emails and Email Format.

  • Generate Emails: To generate an email response, select the tone and dialect you want to use from the dropdown menus, and then enter the email to which you want to respond in the text box. After you click the Generate Response Email button, the app will generate the response based on your inputs.

  • Email Format: To format a poorly-worded email, select the tone and dialect you want to use from the dropdown menus, and then enter the email you want to format in the text box. After you click the Generate Convert Email button, the app will format the email based on your inputs.

GPT Question

The GPT Question function allows you to ask questions and receive answers based on either a PDF document or a text document.

  • PDF input: To generate an answer to a question about a PDF document, upload the PDF document and enter your question in the text box. After you click the Submit question button, the app will generate an answer based on your inputs.

  • txt input: To generate an answer to a question about a text document, enter the text document in the text box and enter your question in the text box. After you click the Submit question button, the app will generate an answer based on your inputs.

Deployment

This app is deployed using Streamlit Sharing, which allows you to deploy your app on the web with a single click. The deployed app can be accessed at the following URL:

https://gptfunctions.streamlit.app/

Conclusion This application provides a variety of AI-powered functionalities that can be used to generate emails and answers to questions. The application is easy to use and can be used by anyone with a basic understanding of how to use a web browser.

ai_application's People

Contributors

scottll avatar

Watchers

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