Spaces:
Sleeping
Sleeping
Fix: lower max_tokens to 1500 for free API limit
Browse files- summarizer.py +1 -1
summarizer.py
CHANGED
@@ -58,7 +58,7 @@ def summarize_text(text, mode, model_name="anthropic/claude-3-haiku", lang_mode=
|
|
58 |
"messages": [
|
59 |
{"role": "user", "content": build_prompt(text, mode,lang_mode, is_table)}
|
60 |
],
|
61 |
-
"max_token":
|
62 |
}
|
63 |
|
64 |
try:
|
|
|
58 |
"messages": [
|
59 |
{"role": "user", "content": build_prompt(text, mode,lang_mode, is_table)}
|
60 |
],
|
61 |
+
"max_token": 1500
|
62 |
}
|
63 |
|
64 |
try:
|