Skip to content

Humza-Aa/AI_Chat_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 

Repository files navigation

AI Chat App

Welcome to the AI Chat App! This project is part of my portfolio and showcases my skills in building conversational AI applications.

Introduction

The AI Chat App is an API that provides access to a custom-built conversational AI model. This AI is trained specifically to answer questions about me and my projects. Whether you're curious about my technical skills, past experiences, or projects I've worked on, this AI can provide informative responses.

AI Chat App Demo

Features

  • Interactive chat interface powered by AI technology
  • Available on my portfolio website: humza-aamir.vercel.app

Installation

To run this project locally, follow these steps:

  1. Clone the repository to your local machine:
    git clone https://github.com/humza-Aa/AI_Chat_App.git
  2. Navigate to the project directory:
    cd Chatbot_Portfolio
  3. Create a virtual environment:
    python -m venv venv
  4. Activate the virtual environment:
  • On Windows:
    venv\Scripts\activate
  • On macOS and Linux:
    source venv/bin/activate
  1. Install the required dependencies:
    pip install -r requirements.txt
  2. Run the Flask application:
    flask run
  3. Open your web browser and navigate to http://localhost:5000 to use the AI Chat App locally.

Usage

To interact with the AI, you can send messages to the /chat endpoint using the HTTP POST method. Include your message in the body of the request using a form field named "message".

Example JavaScript Code:

try {
  const formData = new FormData();
  formData.append("message", message);

  const response = await fetch("https://chat-app-zl6s.onrender.com/chat", {
    method: "POST",
    body: formData,
  });

  if (!response.ok) {
    throw new Error("Failed to send message");
  }

  // Handle response if needed
  const data = await response.text();
  return data;
} catch (error) {
  console.error("Error:", error);
}

Support and Feedback

For any issues or feedback regarding this project, feel free to reach out to me at humzaaamir31@gmail.com.