openfree commited on
Commit
67522dc
ยท
verified ยท
1 Parent(s): eaa16ac

Update app-backup-HN.py

Browse files
Files changed (1) hide show
  1. 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=500,
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
  )