Skip to main content

No project description provided

Project description

simple-deployment

Chatbot Interface with Flask and Hugging Face Transformers

Description

This project is a chatbot interface that integrates Hugging Face's Transformers library with a Flask backend. It serves a frontend built with HTML, CSS, and JavaScript to interact with the user. The user can input text which is then processed by the Flask backend and fed into a pre-trained language model. The model's generated text is then sent back to the frontend and displayed.

Folder Structure

  • frontend/: Contains all frontend HTML, CSS, and JavaScript files.

    • index.html: Main HTML file that provides the user interface.
  • backend/: Contains Flask application and related backend code.

    • app.py: Main Flask application script.
  • models/: Folder where pre-trained language models are saved.

  • requirements.txt: Lists all Python dependencies.

How to Use

Prerequisites

  1. Python 3.x
  2. pip

Installation

  1. Clone the repository.

    git clone https://github.com/your-repo-link.git
    
  2. Navigate to the project directory.

    cd Chatbot-Interface
    
  3. Install the required Python packages.

    pip install -r requirements.txt
    

Running the Application

  1. Start the Flask application.

    python backend/app.py
    
  2. Open a web browser and go to http://127.0.0.1:5000/.

  3. Use the frontend interface to interact with the chatbot. You can choose a pre-trained model from the dropdown or upload your own.

Interacting with the Chatbot

  1. Type your text into the input field and press "Send" or hit the Enter key.
  2. The chatbot's response will appear below your message.

Reference

Viktor Veselov 10/28/2023

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple-deployment-0.1.1a0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

simple_deployment-0.1.1a0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file simple-deployment-0.1.1a0.tar.gz.

File metadata

  • Download URL: simple-deployment-0.1.1a0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for simple-deployment-0.1.1a0.tar.gz
Algorithm Hash digest
SHA256 003be49141081225ca82dc2c471505af68140f5a8d9ef563837e099df08cbe17
MD5 5c7444bec2993937cc5356e6da75f015
BLAKE2b-256 895eddf38686e539de64be04e43e32eadf6f6de68c76a07b53a2cc0ecb94dffe

See more details on using hashes here.

File details

Details for the file simple_deployment-0.1.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_deployment-0.1.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 655a8c4316f379199c87e95d444213ceea5bd69dd6b9bfb489226722b665c451
MD5 10e855b9011352dce66af630c5131bbd
BLAKE2b-256 646bf967fb4f0d0c1c05a43465fec082b6b7272bec34f02022ea8c7292e38686

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page