Read-only mirror of https://github.com/dscc-admin-ch/INODE4Statbot — Data Science Competence Center DSCC. Issues & pull requests at the source.
  • Python 60.5%
  • Jupyter Notebook 25.3%
  • JavaScript 12.8%
  • Go Template 0.6%
  • CSS 0.6%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-08-27 09:41:14 +02:00
.github/workflows Changed directory name 2025-06-20 14:27:39 +00:00
statbot-api Folder renaming 2025-06-19 08:27:01 +00:00
statbot-helm Changed root folder to tmp folder as in vllm chart 2025-08-27 07:25:56 +00:00
statbot-ui Folder push_docker bugfix #1 2025-06-19 09:00:18 +00:00
tests Changes to push docker images to dscc 2025-06-17 14:32:56 +00:00
.gitignore Removed all unnecessary modules 2025-01-29 10:59:53 +00:00
docker-compose.yml adapt code for helm 2025-02-27 16:37:36 +00:00
LICENSE Initial commit 2024-05-27 12:55:05 +02:00
README.md Update README.md 2025-06-17 16:39:39 +02:00

Statbot UI

This package contains the front- and back-end code for the Statbot UI.

Running the Server

To run, first create a .env with the following variables:

MODEL_NAME=[ModelName]
MODEL_PATH="model_path"
INFERENCE_SERVER_URL=[Onyxia service address]
DEPLOYED_LLM_TOKEN=[HF or other API token]

Along with the database parameters:

DB_HOST=
DB_PORT=
DB_SCHEMA=
DB_PASS=
DB_USERNAME=
DB_DATABASE=

Then run docker compose up to build and start the server.

Importing/Exporting User Data

Once the server is running, the logs, whitelist and user data will be stored in ./userdata. To import existing data from a previous instance, place it in ./userdata before startup. If no existing user data has been provided, create an admin account and password using the login screen after startup.

Managing Access

The user whitelist and password reset functions can be accessed in a browser via the administrator control panel at http://[URL]/admin. Alternatively, the databases in ./userdata can be modified directly.

Statbot helm

For now, on onyxia just clone this repo, adapt the values.yaml and run:

helm dependency build ./statbot-helm/

helm install statbot ./statbot-helm/

For now, ui is mapped to port 2000 (forced). The current nginx.default.conf is using this config:

server {
        listen 2000 default_server;
        listen [::]:2000 default_server;

        root /usr/share/nginx/html;
        index index.html;

		location /
		{
			try_files $uri $uri/ /index.html =404;
		}

        location /api
		{
			proxy_pass http://api:5000/api;
			proxy_read_timeout 3600;
		}
}