The Summarizer application fails after uploading .txt/.pdf/.md documents.
version: 1.3.1
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
Install summarizer demo through recipe catalog
Verify summarizer app is running in AI Apps section
Open application using Open AI App icon
Trigger summarize on ai-studio README.md
Wait for summary to be generated
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"]
Bug description
The Summarizer application fails after uploading .txt/.pdf/.md documents.
version: 1.3.1
Operating system
Fedora 40, Windows 10 GPU enabled
Installation Method
from
ghcr.io/containers/podman-desktop-extension-ai-lab
container imageVersion
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"]