Skip to content

I need help to improve my model and database. JuanPrime is a machine learning project built with PyTorch, focusing on creating a Discord bot. It utilizes natural language processing techniques to provide interactive bot functionalities within the Discord platform.

License

Notifications You must be signed in to change notification settings

silveirinhajuan/juanprime

Repository files navigation

🧠Juan Prime🤖

Description   |    Features   |    Prerequisites   |    API   |    License


GitHub license GitHub stars

Project Juan Prime

📋 Description

JuanPrime is a machine learning project built with PyTorch, focusing on creating a Discord bot. It utilizes natural language processing techniques to provide interactive bot functionalities within the Discord platform.

✅ Features

  • Timeout Discord
  • On Discord answer only when called
  • Created API
  • API hosted on render

⚙ Prerequisites

Before getting started, ensure that you have the following dependencies installed:

- discord.py==2.3.1
- nltk==3.8.1
- numpy==1.24.3
- torch~=2.0.1

💻 Installation

Follow the steps below to install and run JuanPrime:

  1. Clone the repository:

       git clone https://www.github.com/silveirinhajuan/juanprime.git
  2. Navigate to the project directory:

    cd juanprime
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Run the project:

    python main.py

🌐 API

Follow the steps below to consume API.

  1. Ensure that you have an internet connection and a client application capable of making HTTP requests.

  2. Make a POST request to the API endpoint https://api-ai.onrender.com/response_msg using your preferred method or tool (e.g., cURL, Postman, or a programming language).

  3. Set the following headers in your request:

    • Content-Type: application/json
  4. In the request body, provide the message data in JSON format. The JSON should contain a single key-value pair, where the key is "text" and the value is the message you want to send to your AI. For example:

    {
      "text": "Hello, AI!"
    }
  5. Send the POST request to the API endpoint.

  6. The API will process your request and return a response. The response will be in JSON format and will contain a key "response" with the corresponding value as the response generated by your AI. For example:

    {
      "response": "your response"
    }

👩‍💻 How to Contribute

Contributions are always welcome! To contribute to JuanPrime, follow these steps:
  1. Fork the project

  2. Create a new branch for your feature: git checkout -b my-feature

  3. Commit your changes: git commit -m 'Adding a new feature'

  4. Push to the branch: git push origin my-feature

  5. Open a pull request

📝 License

This project is licensed under the MIT License.

Contact


Made with ♥ by Juan Guerra 👋 Access my LinkedIn!

About

I need help to improve my model and database. JuanPrime is a machine learning project built with PyTorch, focusing on creating a Discord bot. It utilizes natural language processing techniques to provide interactive bot functionalities within the Discord platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages