Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def extract_text_from_pdf(pdf_path):
|
|
59 |
# total_token = response.usage.total_tokens
|
60 |
# return summary_text, total_token
|
61 |
|
62 |
-
def summarize_text_with_chat(text, max_length=
|
63 |
"""GroqのLlama3 70Bを使ってテキストを要約。"""
|
64 |
client = Groq(
|
65 |
api_key=os.environ.get("GROQ_API_KEY"),
|
|
|
59 |
# total_token = response.usage.total_tokens
|
60 |
# return summary_text, total_token
|
61 |
|
62 |
+
def summarize_text_with_chat(text, max_length=10000):
|
63 |
"""GroqのLlama3 70Bを使ってテキストを要約。"""
|
64 |
client = Groq(
|
65 |
api_key=os.environ.get("GROQ_API_KEY"),
|