Skip to content

splitllmbill/flask-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

158 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-backend

Python Flask Repositories for LLM/OCR and other APIs

Installation

To install required Python libraries, use the following command:

pip install -r requirements.txt

Running the Server

To start the Flask server, execute the following command:

python app.py

Configuration

Get the .env file and add it to the home folder.

Virtual Environment Setup (Optional)

If you encounter issues with existing Python packages, you can create a virtual environment.

Install virtualenv

First, install virtualenv using pip:

pip install virtualenv

Verify the virtualenv version:

virtualenv --version

Create and Activate Virtual Environment

Inside the repository folder:

Create a virtual environment named venv:

virtualenv venv

Activate the virtual environment:

  • For Windows:
venv\Scripts\activate
  • For Unix or MacOS:
source venv/bin/activate

Your command prompt or terminal should now display (venv) to indicate the virtual environment is active.

Install Required Packages

Check if no packages are installed (optional):

pip list

Install the exact versions of required packages considering dependencies:

pip install -r requirements.txt

Use the below command if you have added any new packages

pip freeze > requirements.txt

Deactivate Virtual Environment

To exit the virtual environment, use the following command:

deactivate

About

Python Flask Repositories for LLM/OCR and other APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages