Welcome to the AI Chat App! This project is part of my portfolio and showcases my skills in building conversational AI applications.
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.
- Interactive chat interface powered by AI technology
- Available on my portfolio website: humza-aamir.vercel.app
To run this project locally, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/humza-Aa/AI_Chat_App.git
- Navigate to the project directory:
cd Chatbot_Portfolio
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
- Run the Flask application:
flask run
- Open your web browser and navigate to http://localhost:5000 to use the AI Chat App locally.
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".
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);
}
For any issues or feedback regarding this project, feel free to reach out to me at humzaaamir31@gmail.com.