Skip to content

This a simple chatbot for text generation buit with streamlit, will help you how OpenAI API works into chatbots text generation, is a LLM model

License

Notifications You must be signed in to change notification settings

Jpzinn654/chatbot-textgeneration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text Generation Bot

This project is a simple text generation chatbot web application built with Streamlit that utilizes the GPT-2 model for text generation. Users can input a text prompt and receive generated text based on their input.

Technologies Used

  • Streamlit - A framework for building web applications in Python.
  • Transformers - A library for state-of-the-art natural language processing.

Installation

To run this application locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/text-generation-bot.git
    cd text-generation-bot
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

  • On Windows
    venv\Scripts\activate
  • On Linux/MacOS
    source venv/bin/activate
  1. Install the required packages:

    pip install streamlit transformers
  2. Run the application:

    streamlit run app.py
  3. Open your web browser and go to http://localhost:8501 to access the app.


Usage

  1. Enter your text prompt in the provided text area. For example:
As the sun set over the horizon, the explorers gathered around the campfire and shared tales of their latest adventure. One of them said,
  1. Click the "Generate Text" button.

  2. The generated text will be displayed below the button.

Screenshots

image image

About

This a simple chatbot for text generation buit with streamlit, will help you how OpenAI API works into chatbots text generation, is a LLM model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages