containers / ai-lab-recipes

Examples for building and running LLM services and applications locally with Podman
Apache License 2.0
111 stars 110 forks source link

Summarizer app fails after uploading txt/pdf/md files #802

Closed amisskii closed 2 weeks ago

amisskii commented 1 month ago

Bug description

The Summarizer application fails after uploading .txt/.pdf/.md documents.

version: 1.3.1

Image

Operating system

Fedora 40, Windows 10 GPU enabled

Installation Method

from ghcr.io/containers/podman-desktop-extension-ai-lab container image

Version

next (development version)

Steps to reproduce

Relevant log output

File "/opt/app-root/lib64/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script exec(code, module.dict) File "/summarizer/summarizer.py", line 120, in chunks = chunk_text(text) ^^^^^^^^^^^^^^^^ File "/summarizer/summarizer.py", line 62, in chunk_text count = json.loads(count)["count"]



### Additional context

_No response_