Spaces:
Building
Building
Update app-backup-HN.py
Browse files- app-backup-HN.py +2 -2
app-backup-HN.py
CHANGED
@@ -394,7 +394,7 @@ def generate_summary(text):
|
|
394 |
if not text:
|
395 |
return None
|
396 |
|
397 |
-
prompt = """๋ฐ๋์ ํ๊ธ(ํ๊ตญ์ด)๋ก ์์ฑํ๋ผ. Please analyze and summarize the following text in 2-3 sentences.
|
398 |
Focus on the main points and key information:
|
399 |
Text: {text}
|
400 |
|
@@ -403,7 +403,7 @@ def generate_summary(text):
|
|
403 |
try:
|
404 |
response = hf_client.text_generation(
|
405 |
prompt.format(text=text),
|
406 |
-
max_new_tokens=
|
407 |
temperature=0.5,
|
408 |
repetition_penalty=1.2
|
409 |
)
|
|
|
394 |
if not text:
|
395 |
return None
|
396 |
|
397 |
+
prompt = """๋ฐ๋์ ํ๊ธ(ํ๊ตญ์ด)๋ก ์์ฑํ๋ผ. 250 ํ ํฐ ์ด๋ด๋ก ์์ฝ์ ํ์ฌ์ผ ํ๋ค. Please analyze and summarize the following text in 2-3 sentences.
|
398 |
Focus on the main points and key information:
|
399 |
Text: {text}
|
400 |
|
|
|
403 |
try:
|
404 |
response = hf_client.text_generation(
|
405 |
prompt.format(text=text),
|
406 |
+
max_new_tokens=300,
|
407 |
temperature=0.5,
|
408 |
repetition_penalty=1.2
|
409 |
)
|