GithubHelp home page GithubHelp logo

behzadanksu / unhhandbookbot-v3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryo-ma/gpt-assistants-api-ui

0.0 0.0 0.0 68 KB

πŸ’¬ OpenAI Assistants API chat UI πŸ› οΈ It works easily by setting the ASSISTANT ID πŸ“ Supports file upload and file download πŸͺŸ Support to Azure OpenAI

License: MIT License

Python 96.29% Dockerfile 3.71%

unhhandbookbot-v3's Introduction

gpt-assistants-api-ui

  • πŸ’¬ OpenAI Assistants API chat UI
  • πŸ› οΈ It works easily by setting the ASSISTANT ID
  • πŸ“ Supports file upload and file download
  • πŸͺŸ Support to Azure OpenAI
γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2023-11-20 2 23 51

🌟 Quick Start

  1. πŸ‘€ Create an assistant on the OpenAI site (Get assistant ID)

  2. πŸ”‘ Get the API key from OpenAI

  3. ⬇️ Clone the repository

    $ git clone https://github.com/ryo-ma/gpt-assistants-api-ui.git
  4. πŸ“¦ Install dependencies

    $ poetry install
  5. πŸ”‘ Set environment variables

    OPENAI_API_KEY="sk-xxx"
    ASSISTANT_ID="asst_xxx"
    
    ASSISTANT_TITLE="Assistants API UI"
    ENABLED_FILE_UPLOAD_MESSAGE="Upload a file" # Leave empty to disable

    If you use azure instead, set AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY

  6. πŸƒβ€οΈ Run the app

    $ poetry shell
    $ streamlit run app.py

🐳 Run the app using Docker

  1. πŸ‘€ Create an assistant on the OpenAI site (Get assistant ID)

  2. πŸ”‘ Get the API key from OpenAI

  3. ⬇️ Clone the repository

    $ git clone https://github.com/ryo-ma/gpt-assistants-api-ui.git
  4. πŸ”‘ Set environment variables

    Create a .env file.

    OPENAI_API_KEY="sk-xxx"
    ASSISTANT_ID="asst_xxx"
    
    ASSISTANT_TITLE="Assistants API UI"
    ENABLED_FILE_UPLOAD_MESSAGE="Upload a file" # Leave empty to disable

    If you use azure instead, set AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY

  5. πŸ’½ Build image

    $ docker compose build
  6. πŸƒβ€οΈ Run the app

    $ docker compose up

Access to http://localhost:8501.

🌐 Deploy to Streamlit Cloud

You can fork this repository and deploy the app to https://share.streamlit.io/. No need to run the app on your local machine.

Don't forget to choose 3.10 as the Python version and set environment variables in the "Advanced settings" during deployment.

unhhandbookbot-v3's People

Contributors

ryo-ma avatar resivalex avatar behzadanksu 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.