rest-api-server / README.md
mattoofahaddcube's picture
Initial commit
ef1dd9e
|
raw
history blame
2.56 kB
metadata
title: This a fastapi endpoint for whatsapp chat.
colorFrom: red
colorTo: green
emoji: πŸ‘ŒπŸ‘Œ
sdk: docker
app_file: main.py
pinned: false

Whatsapp-Chatbot

A simple repository to integrate a chatbot with whatsapp.

Installation and Usage πŸš€πŸ’»

  1. Create conda env

    conda create -n whatsapp_bot_env python=3.10 -y
    
  2. Activate env

    conda activate whatsapp_bot_env
    
  3. Install the required Python packages:

    pip install -r requirements.txt
    

docker

Docker

  1. Create the docker container

    docker build -t whatapp-endpoint .
    
  2. run the container

    docker run -p 7860:7860 whatapp-endpoint
    
  1. Run the local server:

    uvicorn main:app --host 0.0.0.0 --port 5000