AIRider commited on
Commit
b146cdf
·
verified ·
1 Parent(s): e75051c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -90,16 +90,16 @@ def summarize_text(title, description, text):
90
  대본:
91
  {text}
92
  """
93
- return call_api(prompt, max_tokens=2000, temperature=0.3, top_p=0.9)
94
 
95
  def analyze(url, progress=gr.Progress()):
96
  try:
97
  progress(0, desc="스크립트 추출 중...")
98
  title, description, script = get_youtube_script(url)
99
 
100
- progress(0.33, desc="원문 스크립트 처리 중...")
101
  script_sentences = split_sentences(script)
102
- script_content = f"# {title}\n\n" + "\n".join(script_sentences)
103
 
104
  progress(0.66, desc="요약 생성 중...")
105
  summary = summarize_text(title, description, script)
 
90
  대본:
91
  {text}
92
  """
93
+ return call_api(prompt, max_tokens=8000, temperature=0.35, top_p=0.95)
94
 
95
  def analyze(url, progress=gr.Progress()):
96
  try:
97
  progress(0, desc="스크립트 추출 중...")
98
  title, description, script = get_youtube_script(url)
99
 
100
+ progress(33, desc="원문 스크립트 처리 중...")
101
  script_sentences = split_sentences(script)
102
+ script_content = f"# {title}\n\n" + "\n".join([s + "." for s in script_sentences])
103
 
104
  progress(0.66, desc="요약 생성 중...")
105
  summary = summarize_text(title, description, script)