Skip to content

Latest commit

 

History

History

summarizer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Text summarizer with free Qwen

This server-side Python CLI reads a UTF-8 text file, calls qwen/qwen3.8-27b, prints three summary bullets and saves them to summary.txt. Only non-empty replies are written. No web server or database is needed.

Install and configure

From the repository root, use Python 3.10+:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements.txt
export ITERACOMPUTE_API_KEY="your-api-key"

Windows PowerShell:

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
$env:ITERACOMPUTE_API_KEY = "your-api-key"

Get the key from IteraCompute API Keys and permit qwen/qwen3.8-27b. Run the first free call before this example.

Run

From the repository root:

python examples/summarizer/summarize.py examples/summarizer/meeting.txt --output summary.txt

Windows PowerShell:

.\.venv\Scripts\python.exe examples/summarizer/summarize.py examples/summarizer/meeting.txt --output summary.txt
Get-Content summary.txt

On Bash read the saved file with cat summary.txt. For your own input, replace examples/summarizer/meeting.txt with the path to a small UTF-8 document. Input plus requested output must fit your free context limit; large documents need splitting before use.

Expected result and acceptance

The output should contain three non-empty bullets covering the October 21 launch, Maya's October 18 checklist, Leo's CSV export, the deferred mobile layout and launch blockers. It ends with Saved: summary.txt. Wording is nondeterministic.

Check exit code 0, a non-empty summary.txt, and the source facts. A file created without an API reply is not success. See the actual acceptance record.

Troubleshooting

  • Missing file / invalid UTF-8: check the input path and save the document as UTF-8.
  • Input file is empty: provide actual text; no API call is sent for blank input.
  • Empty API reply: the command fails and does not create or replace the output file.
  • Output path error: choose a writable path with an existing parent directory.
  • HTTP 401/403/404/429 or timeout: use the shared troubleshooting table.

Website SDK guide · API docs