Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -1011,22 +1011,22 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI ์๋น์ค") as
|
|
1011 |
value="๋์์์"
|
1012 |
)
|
1013 |
search_button_global = gr.Button("๊ฒ์", variant="primary")
|
1014 |
-
|
1015 |
status_message_global = gr.Markdown("")
|
1016 |
translated_query_display_global = gr.Markdown("")
|
1017 |
-
|
1018 |
with gr.Column(elem_id="results_area"):
|
1019 |
articles_state_global = gr.State([])
|
1020 |
-
global_article_components = create_article_components(MAX_GLOBAL_RESULTS)
|
1021 |
|
|
|
1022 |
global_article_components = []
|
1023 |
-
for i in range(
|
1024 |
with gr.Group(visible=False) as article_group:
|
1025 |
title = gr.Markdown()
|
1026 |
image = gr.Image(width=200, height=150)
|
1027 |
snippet = gr.Markdown()
|
1028 |
info = gr.Markdown()
|
1029 |
-
|
1030 |
global_article_components.append({
|
1031 |
'group': article_group,
|
1032 |
'title': title,
|
@@ -1036,6 +1036,8 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI ์๋น์ค") as
|
|
1036 |
'index': i,
|
1037 |
})
|
1038 |
|
|
|
|
|
1039 |
with gr.Tab("AI ๋ฆฌํฌํฐ"):
|
1040 |
gr.Markdown("์ง๋ 24์๊ฐ ๋์์ Hacker News ํฌ์คํธ๋ฅผ AI๊ฐ ์์ฝํ์ฌ ๋ณด์ฌ์ค๋๋ค.")
|
1041 |
|
|
|
1011 |
value="๋์์์"
|
1012 |
)
|
1013 |
search_button_global = gr.Button("๊ฒ์", variant="primary")
|
1014 |
+
|
1015 |
status_message_global = gr.Markdown("")
|
1016 |
translated_query_display_global = gr.Markdown("")
|
1017 |
+
|
1018 |
with gr.Column(elem_id="results_area"):
|
1019 |
articles_state_global = gr.State([])
|
|
|
1020 |
|
1021 |
+
# ๊ธ๋ก๋ฒ ๊ฒ์ ๊ฒฐ๊ณผ๋ฅผ ์ํ ์ปดํฌ๋ํธ ์์ฑ
|
1022 |
global_article_components = []
|
1023 |
+
for i in range(MAX_GLOBAL_RESULTS):
|
1024 |
with gr.Group(visible=False) as article_group:
|
1025 |
title = gr.Markdown()
|
1026 |
image = gr.Image(width=200, height=150)
|
1027 |
snippet = gr.Markdown()
|
1028 |
info = gr.Markdown()
|
1029 |
+
|
1030 |
global_article_components.append({
|
1031 |
'group': article_group,
|
1032 |
'title': title,
|
|
|
1036 |
'index': i,
|
1037 |
})
|
1038 |
|
1039 |
+
|
1040 |
+
|
1041 |
with gr.Tab("AI ๋ฆฌํฌํฐ"):
|
1042 |
gr.Markdown("์ง๋ 24์๊ฐ ๋์์ Hacker News ํฌ์คํธ๋ฅผ AI๊ฐ ์์ฝํ์ฌ ๋ณด์ฌ์ค๋๋ค.")
|
1043 |
|