Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -90,16 +90,16 @@ def summarize_text(title, description, text):
|
|
90 |
대본:
|
91 |
{text}
|
92 |
"""
|
93 |
-
return call_api(prompt, max_tokens=
|
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(
|
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)
|