Metadata-Version: 2.1
Name: simple-deployment
Version: 0.1.1a0
Description-Content-Type: text/markdown
License-File: LICENCE.md
Requires-Dist: absl-py ==2.0.0
Requires-Dist: accelerate ==0.23.0
Requires-Dist: aiofiles ==23.1.0
Requires-Dist: aiohttp ==3.8.5
Requires-Dist: aiosignal ==1.3.1
Requires-Dist: anyio ==4.0.0
Requires-Dist: appdirs ==1.4.4
Requires-Dist: async-timeout ==4.0.3
Requires-Dist: attrs ==23.1.0
Requires-Dist: bitsandbytes ==0.41.1
Requires-Dist: blinker ==1.6.3
Requires-Dist: cachetools ==5.3.1
Requires-Dist: certifi ==2023.7.22
Requires-Dist: cffi ==1.16.0
Requires-Dist: charset-normalizer ==3.3.0
Requires-Dist: click ==8.1.7
Requires-Dist: colorama ==0.4.6
Requires-Dist: coloredlogs ==15.0.1
Requires-Dist: contourpy ==1.1.1
Requires-Dist: cors ==1.0.1
Requires-Dist: cramjam ==2.7.0
Requires-Dist: cycler ==0.12.0
Requires-Dist: dill ==0.3.7
Requires-Dist: docker-pycreds ==0.4.0
Requires-Dist: einops ==0.7.0
Requires-Dist: exceptiongroup ==1.1.3
Requires-Dist: fastapi ==0.95.2
Requires-Dist: fastparquet ==2023.8.0
Requires-Dist: ffmpy ==0.3.1
Requires-Dist: filelock ==3.12.4
Requires-Dist: Flask ==3.0.0
Requires-Dist: Flask-Cors ==4.0.0
Requires-Dist: Flask-Uploads ==0.2.1
Requires-Dist: fonttools ==4.43.0
Requires-Dist: frozenlist ==1.4.0
Requires-Dist: fsspec ==2023.6.0
Requires-Dist: future ==0.18.3
Requires-Dist: gevent ==23.9.1
Requires-Dist: gitdb ==4.0.10
Requires-Dist: GitPython ==3.1.37
Requires-Dist: google-auth ==2.23.2
Requires-Dist: google-auth-oauthlib ==1.0.0
Requires-Dist: greenlet ==3.0.1
Requires-Dist: grpcio ==1.59.0
Requires-Dist: h11 ==0.14.0
Requires-Dist: httpcore ==0.18.0
Requires-Dist: httpx ==0.25.0
Requires-Dist: huggingface-hub ==0.16.4
Requires-Dist: humanfriendly ==10.0
Requires-Dist: idna ==3.4
Requires-Dist: itsdangerous ==2.1.2
Requires-Dist: Jinja2 ==3.1.2
Requires-Dist: jsonschema ==4.19.1
Requires-Dist: jsonschema-specifications ==2023.7.1
Requires-Dist: kiwisolver ==1.4.5
Requires-Dist: linkify-it-py ==2.0.2

# 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
