bsenst commited on
Commit
0bb19ee
·
1 Parent(s): d85b6e9

refactor: update Gradio interface and localize documentation

Browse files

- Migrate `gr.Chatbot` to the messages format (dictionary-based history).
- Fix Gradio 5 compatibility by moving theme configuration to `launch()` and removing the `type` parameter from `Chatbot`.
- Update `README.md` to reflect German localization and current project status.
- Add source citations to chatbot responses for improved debugging and transparency.

Files changed (2) hide show
  1. README.md +9 -18
  2. app.py +1 -1
README.md CHANGED
@@ -6,6 +6,8 @@ colorTo: blue
6
  sdk: gradio
7
  app_file: app.py
8
  pinned: false
 
 
9
  ---
10
 
11
  # EBM Mentor
@@ -37,12 +39,11 @@ flowchart LR
37
 
38
  ## Features
39
 
40
- - Free-form EBM question answering
41
- - Code explanation with structured metadata
42
- - Random quiz mode
43
- - Search and chapter browsing
44
- - Source citations and retrieved document viewer
45
- - Confidence score for retrieval results
46
 
47
  ## Repository Layout
48
 
@@ -72,10 +73,11 @@ ebm-rag-trainer/
72
 
73
  ## Setup
74
 
75
- ### 1. Create an environment
76
 
77
  ```bash
78
  python -m venv .venv
 
79
  ```
80
 
81
  Linux / macOS:
@@ -147,17 +149,6 @@ python app.py
147
  - No paid APIs
148
  - Local FAISS index and local metadata files only
149
 
150
- ## Example Screenshots
151
-
152
- Add screenshots here after deployment:
153
-
154
- ```text
155
- docs/screenshots/ask-ebm.png
156
- docs/screenshots/explain-code.png
157
- docs/screenshots/quiz-mode.png
158
- docs/screenshots/explore-ebm.png
159
- ```
160
-
161
  ## Sample Questions
162
 
163
  - Was bedeutet EBM-Code 01100?
 
6
  sdk: gradio
7
  app_file: app.py
8
  pinned: false
9
+ tags:
10
+ - track:backyard
11
  ---
12
 
13
  # EBM Mentor
 
39
 
40
  ## Features
41
 
42
+ - **Interaktiver Chat**: Fragen zur EBM in natürlicher Sprache stellen.
43
+ - **Quellennachweise**: Jede Antwort enthält die gefundenen EBM-Ziffern als Referenz.
44
+ - **EBM Explorer**: Gezielte Suche nach Codes, Titeln und Kapiteln in tabellarischer Form.
45
+ - **Automatische Datenbeschaffung**: Lädt beim ersten Start optional den aktuellen KBV-Datensatz herunter.
46
+ - **Offline-Support**: Unterstützung für den Betrieb ohne Internetverbindung (lokaler Cache).
 
47
 
48
  ## Repository Layout
49
 
 
73
 
74
  ## Setup
75
 
76
+ ### 1. Umgebung erstellen
77
 
78
  ```bash
79
  python -m venv .venv
80
+ source .venv/bin/activate # Windows: .venv\Scripts\activate
81
  ```
82
 
83
  Linux / macOS:
 
149
  - No paid APIs
150
  - Local FAISS index and local metadata files only
151
 
 
 
 
 
 
 
 
 
 
 
 
152
  ## Sample Questions
153
 
154
  - Was bedeutet EBM-Code 01100?
app.py CHANGED
@@ -233,7 +233,7 @@ def build_app() -> gr.Blocks:
233
  # Data source status indicator
234
  status_text = "Unbekannt"
235
  if DATA_SOURCE_STATUS == "full":
236
- status_text = "✓ Vollständiges KBV EBM (heruntergeladen und indexiert)."
237
  elif DATA_SOURCE_STATUS == "store":
238
  status_text = "✓ Vektor-Store wiederverwendet (aus vorherigem Durchlauf)."
239
  elif DATA_SOURCE_STATUS == "demo":
 
233
  # Data source status indicator
234
  status_text = "Unbekannt"
235
  if DATA_SOURCE_STATUS == "full":
236
+ status_text = "✓ EBM Fachgruppe 001"
237
  elif DATA_SOURCE_STATUS == "store":
238
  status_text = "✓ Vektor-Store wiederverwendet (aus vorherigem Durchlauf)."
239
  elif DATA_SOURCE_STATUS == "demo":