Update app.py
Browse files
app.py
CHANGED
@@ -499,7 +499,7 @@ def refresh_hn_stories():
|
|
499 |
# ์ต์ ์คํ ๋ฆฌ ๊ฐ์ ธ์ค๊ธฐ
|
500 |
stories = get_recent_stories()
|
501 |
processed_count = 0
|
502 |
-
valid_stories = []
|
503 |
|
504 |
with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:
|
505 |
future_to_story = {executor.submit(process_hn_story, story): story
|
@@ -546,8 +546,7 @@ def refresh_hn_stories():
|
|
546 |
yield outputs
|
547 |
|
548 |
# ์ต์ข
์ํ ์
๋ฐ์ดํธ
|
549 |
-
|
550 |
-
final_outputs = [gr.update(value=final_status, visible=True)]
|
551 |
|
552 |
for idx, comp in enumerate(hn_article_components):
|
553 |
if idx < len(valid_stories):
|
|
|
499 |
# ์ต์ ์คํ ๋ฆฌ ๊ฐ์ ธ์ค๊ธฐ
|
500 |
stories = get_recent_stories()
|
501 |
processed_count = 0
|
502 |
+
valid_stories = [] # ์ฑ๊ณต์ ์ผ๋ก ์ฒ๋ฆฌ๋ ์คํ ๋ฆฌ ์ ์ฅ
|
503 |
|
504 |
with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:
|
505 |
future_to_story = {executor.submit(process_hn_story, story): story
|
|
|
546 |
yield outputs
|
547 |
|
548 |
# ์ต์ข
์ํ ์
๋ฐ์ดํธ
|
549 |
+
final_outputs = [gr.update(value=f"์ด {len(valid_stories)}๊ฐ์ ํฌ์คํธ๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์ฒ๋ฆฌ๋์์ต๋๋ค. (์ ์ฒด ์๋: {processed_count})", visible=True)]
|
|
|
550 |
|
551 |
for idx, comp in enumerate(hn_article_components):
|
552 |
if idx < len(valid_stories):
|