Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -97,15 +97,15 @@ def analyze(url, progress=gr.Progress()):
|
|
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(script_sentences)
|
103 |
|
104 |
-
progress(66, desc="요약 생성 중...")
|
105 |
summary = summarize_text(title, description, script)
|
106 |
summary_content = f"# {title}\n\n{summary}"
|
107 |
|
108 |
-
progress(
|
109 |
return script_content, summary_content
|
110 |
except Exception as e:
|
111 |
error_msg = f"처리 중 오류 발생: {str(e)}"
|
|
|
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)
|
106 |
summary_content = f"# {title}\n\n{summary}"
|
107 |
|
108 |
+
progress(1.0, desc="완료")
|
109 |
return script_content, summary_content
|
110 |
except Exception as e:
|
111 |
error_msg = f"처리 중 오류 발생: {str(e)}"
|