Spaces:
openfree
/
Running on CPU Upgrade

openfree commited on
Commit
d7d50ec
ยท
verified ยท
1 Parent(s): 242d23e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
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(1000):
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