Skip to content

ryanjohnsonnc/not_human

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repository contains a Python application built using the Flask framework that connects to the Twilio API for sending and receiving text messages. The application also uses the OpenAI API to process the messages and respond accordingly.

Prerequisites

  • Python 3.x
  • Flask
  • Twilio Python library
  • OpenAI Python library

Installation

  • Clone the repository
  • Create a virtual environment (optional but recommended)
  • Install the required libraries using pip: pip install -r requirements.txt
  • Add your Twilio account SID, auth token, and a Twilio phone number in the config.py file.
  • Add your OpenAI API key in the config.py file.
  • Run the application using the command python app.py

Usage

The application will run on http://localhost:5000 by default. You can send a message to the Twilio phone number configured in the config.py file, and the application will respond with a message generated by the OpenAI API.

Hosting on Google Cloud Engine

This application can be easily hosted on Google Cloud Engine (GCE) using the following steps:

  • Create a new GCE instance and install all required dependencies (Python, Flask, etc.).
  • Clone the repository to the instance.
  • Install and configure the Google Cloud SDK on your local machine.
  • Use the gcloud app deploy command to deploy the application to GCE.
  • Configure the Twilio phone number to point to the GCE instance's URL.
  • Configure your GCE instance to allow incoming traffic on port 80 or the port that you have set in the application.
  • Note: you may need to create a new project on Google Cloud Platform and set up the billing account and the app engine to run the app on it.

Contribute

If you want to contribute to this project, please fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published