Skip to content

feat: two-panel Gradio UI with faithfulness heatmap (F2)#4

Merged
bacemtayeb merged 1 commit into
devfrom
feat/frontend-ui
Jun 8, 2026
Merged

feat: two-panel Gradio UI with faithfulness heatmap (F2)#4
bacemtayeb merged 1 commit into
devfrom
feat/frontend-ui

Conversation

@Davidpereira2803

Copy link
Copy Markdown
Collaborator

Closes #F2

  • app.py: source/summary two-panel layout, per-sentence green/orange/red highlight via gr.HighlightedText, button loading state as progress indicator, accordion for ingested source + JSON export, user-facing error messages for empty/oversized/oversized-PDF input
  • tests/test_app.py: 6 unit tests covering _to_highlighted, run() with text and PDF, empty/oversized text rejection, oversized PDF rejection; all models mocked at the analyse/load_text/load_pdf boundary — no real weights loaded

Closes #F2

- app.py: source/summary two-panel layout, per-sentence green/orange/red
  highlight via gr.HighlightedText, button loading state as progress indicator,
  accordion for ingested source + JSON export, user-facing error messages for
  empty/oversized/oversized-PDF input
- tests/test_app.py: 6 unit tests covering _to_highlighted, run() with text
  and PDF, empty/oversized text rejection, oversized PDF rejection; all models
  mocked at the analyse/load_text/load_pdf boundary — no real weights loaded
@bacemtayeb bacemtayeb merged commit f389c11 into dev Jun 8, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants