Spaces:
Runtime error
title: Thesis
emoji: π
colorFrom: red
colorTo: yellow
sdk: gradio
sdk_version: 4.7.1
app_file: main.py
pinned: true
license: mit
app_port: 8080
models:
- microsoft/GODEL-v1_1-large-seq2seq
tags:
- CHAT
- XAI
- SHAP
- GODEL
- Gradio
disable_embedding: true
Bachelor Thesis Webapp
π Info:
This is the UI showcase for my thesis about the interpretability of LLM based chatbot application and applications of XAI.
π Links:
ποΈ Tech Stack:
Language and Framework: Python
Noteable Packages: π€ Transformers, FastAPI, Gradio, SHAP, BERTViz
π¨βπ» Author:
Author: @LennardZuendorf
Thesis Supervisor: Prof. Dr. Simbeck
Second Corrector: Prof. Dr. Hochstein
This Project was part of my studies of Business Computing at the University of Applied Science for Technology and Business Berlin (HTW Berlin).
Running the Project:
π Python with FastAPI :
(This assumes you have set up a python environment, I recommend using a virtual environment.)
- Clone the repository using git or GitHub cli.
- Start the (virtual) environment.
- Set the environment variable "HOSTING", i.e. like this
export HOSTING="local"
, see fastAPI Docu - Install the requirements using
pip install -r requirements.txt
- Run the app using
uvicorn main:app
. You can add--reload
to enable hot reloading. The app will be available atlocalhost:8000
.
π³ Dockerfile :
(This assumes you have set up docker desktop or are using a hosting service able to handle Dockerfiles.)
- Clone the repository using git or GitHub cli.
- Build the docker image using
docker build -t thesis-webapp -f Dockerfile . .
, the command commented in the docker file or the command referenced by your hosting service. - Run the docker image using
docker run --name thesis-webapp -e HOSTING=local -p 8080:8080 thesis-webapp
, the command commented in the docker file or the command referenced by your hosting service. - The app will be available at
localhost:8080
. If you are using a hosting service, the port may be different.
π³ Docker Image :
(This assumes you have set up docker desktop or are using a hosting service able to handle Docker images.)
- Pull the docker image from ghcr using
docker pull ghcr.io/LennardZuendorf/thesis-webapp:latest
. - Run the docker image in terminal using
docker run --name thesis-webapp -e HOSTING=local -p 8080:8080 lennardzuendorf/thesis-webapp:latest
, the command commented in the docker file or the command referenced by your hosting service. - The app will be available at
localhost:8080
. If you are using a hosting service, the port may be different.
π License and Credits:
This project is licensed under the MIT License, see LICENSE for more information. Please cite this project, it's author and my university if you use it in your work.
- Title: Building an Interpretable Natural Language AI Tool based on Transformer Models and approaches of Explainable AI.
- Date: 2024-01-27
- Author: Lennard ZΓΌndorf
- University: HTW Berlin
See code for in detailed credits, work is strongly based on:
GODEL
SHAP
Custom Component (/components/iframe/)
Is based on Gradio component, see indivdual README for full changelog.