Giter Club home page Giter Club logo

not_human's Introduction

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.

not_human's People

Contributors

ryanjohnsonnc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.