haenno / ai-api

Paper and resources for a university exam on building an API to access an AI application.

Home Page:https://ai-api.tstsrv.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI-API

Paper and resources for a university exam on building an API to access an AI application. For the final paper see: https://github.com/haenno/ai-api/blob/main/00-documentation/document.pdf.

A running instance (live demo) of the solution can be found here https://ai-api.tstsrv.de/.

Quickstart instructions

  1. Clone or download this repository.
  2. Install Docker and docker-compose.
  3. Open the folder 50-docker-deployment in a terminal and run these two commands there:
    1. Build the containers with docker-compose build.
    2. Start the containers with docker-compose up.
  4. Then you can open the frontend (Vue.js with Axios) here http://127.0.0.1:8080 and the backend (Django REST API to a AI application) here http://127.0.0.1:8000.

See the README.md in 50-docker-deployment (and also every other folder in this repository) for futher information.

Subfolders

There are serveral subfolders in order of the development of this paper:

  • 00-documentation: The paper itself including the LaTeX source and build scripts.
  • 10-example-ai-app: A simple AI application (a chatbot) based on this tutorial: https://github.com/python-engineer/pytorch-chatbot.
  • 20-prepared-ai-app: A futher developed version of the AI application, callable with parameters from console or directly from other Python scripts.
  • 30-django-base-install: A base installation of Django with all needed packages for a REST API including the chatbot/AI application.
  • 40-vue-axios-webpage: A Frontend for the REST API based on Vue.js and Axios.
  • 50-docker-deployment: Final stage as a docker-comose.yaml with everything put together for easy deployment.

About

Paper and resources for a university exam on building an API to access an AI application.

https://ai-api.tstsrv.de/

License:MIT License


Languages

Language:TeX 56.1%Language:Python 36.5%Language:Vue 4.7%Language:Shell 0.9%Language:HTML 0.8%Language:Batchfile 0.3%Language:JavaScript 0.3%Language:Dockerfile 0.3%