Skip to content

This project demonstrates the integration of AI into a web application using Flask, providing a simple yet effective example of AI-powered functionality.

License

Notifications You must be signed in to change notification settings

maishuji/flask-app-ai

Repository files navigation

Flask AI Project with IBM Watson Libraries

This project is focused on integrating AI functionality into web applications using Embeddable Watson AI libraries.

Goal

  • build two AI-based apps
  • learn essential practices like unit testing, static code analysis, and error handling.

Requirements

  • Python 3.7 or higher
  • pip (Python package manager)
  • Flask 2.x (installation through requirements.txt)
  • IBM Watson SDK

Installation

Create and activate a virtual environment using the following commands:

python -m venv venv
source venv/bin/activate

Install the dependencies using :

pip install -r requirements.txt

Set up IBM Watson API credentials

Add your credentials to an .env file at the root of the project

WATSON_API_KEY=your-api-key  
WATSON_URL=your-service-url  

Usage

Run the flask server

flask --app server --debug run

Open the browser (localhost:5000) or use curl:

# -x to specify the GET command,
# -i to displays the header from the response
curl -X GET -i -w '\n' localhost:5000

License

This project is licensed under the Apache License. See the LICENSE file for details.

About

This project demonstrates the integration of AI into a web application using Flask, providing a simple yet effective example of AI-powered functionality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •