Update cell summary.py

This commit is contained in:
thanhtl 2025-02-19 22:06:18 +07:00
parent c10f528d8a
commit 2f25ca9da1

View File

@ -18,7 +18,7 @@ def summarize_text(text):
"""Send text to Ollama for summarization"""
payload = {
"model": "mistral:latest", # Change model if needed
"prompt": f"Summarize the following text:\n\n{text}",
"prompt": f"Hãy nêu những ý chính trong nội dung sau:\n\n{text}",
"stream": False
}
response = requests.post(OLLAMA_URL, json=payload)