Spaces:
Runtime error
Runtime error
metadata
title: Keepme Backend
emoji: 🏃
colorFrom: green
colorTo: blue
sdk: docker
pinned: false
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
KeepMe
Prerequisites
- Python 3.11.*
- Poetry
- OpenAI API Key
- Pinecone
- MongoDB
- Redis
Installation
- Set up a virtual environment using Poetry
poetry install
- Create a
.envfile in the root directory and add the environment variables mentioned in the.env.examplefile.
cp .env.example .env
- Start the FastAPI server
poetry run uvicorn src.app:app --reload
Docker Installation
- Build the Docker image
docker build -t keepme-backend .
- Run the Docker container
docker run -d -p 7860:7860 --env-file .env keepme-backend
API Documentation
After starting the FastAPI server, you can access the API documentation at http://localhost:8000/docs.