Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -1248,6 +1248,7 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI 서비스") as
|
|
1248 |
'index': i,
|
1249 |
})
|
1250 |
|
|
|
1251 |
# 국가별 탭 이벤트
|
1252 |
search_outputs = [status_message, translated_query_display, gr.Markdown(visible=False)]
|
1253 |
for comp in article_components:
|
@@ -1280,17 +1281,17 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI 서비스") as
|
|
1280 |
show_progress=True
|
1281 |
)
|
1282 |
|
1283 |
-
# AI 리포터 탭 이벤트
|
1284 |
-
hn_outputs = [status_message_hn]
|
1285 |
-
for comp in hn_article_components:
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
|
1295 |
# 각 컴포넌트별 이벤트 연결
|
1296 |
for comp in hn_article_components:
|
@@ -1329,13 +1330,11 @@ for comp in hn_article_components:
|
|
1329 |
outputs=hn_outputs,
|
1330 |
show_progress=True
|
1331 |
)
|
1332 |
-
|
1333 |
-
|
1334 |
|
1335 |
iface.launch(
|
1336 |
server_name="0.0.0.0",
|
1337 |
server_port=7860,
|
1338 |
-
share=True,
|
1339 |
auth=("it1","chosun1"),
|
1340 |
ssl_verify=False,
|
1341 |
show_error=True
|
|
|
1248 |
'index': i,
|
1249 |
})
|
1250 |
|
1251 |
+
# 이벤트 연결 부분
|
1252 |
# 국가별 탭 이벤트
|
1253 |
search_outputs = [status_message, translated_query_display, gr.Markdown(visible=False)]
|
1254 |
for comp in article_components:
|
|
|
1281 |
show_progress=True
|
1282 |
)
|
1283 |
|
1284 |
+
# AI 리포터 탭 이벤트
|
1285 |
+
hn_outputs = [status_message_hn]
|
1286 |
+
for comp in hn_article_components:
|
1287 |
+
hn_outputs.extend([
|
1288 |
+
comp['group'],
|
1289 |
+
comp['title'],
|
1290 |
+
comp['info'],
|
1291 |
+
comp['report_button'],
|
1292 |
+
comp['report_content'],
|
1293 |
+
comp['show_report']
|
1294 |
+
])
|
1295 |
|
1296 |
# 각 컴포넌트별 이벤트 연결
|
1297 |
for comp in hn_article_components:
|
|
|
1330 |
outputs=hn_outputs,
|
1331 |
show_progress=True
|
1332 |
)
|
|
|
|
|
1333 |
|
1334 |
iface.launch(
|
1335 |
server_name="0.0.0.0",
|
1336 |
server_port=7860,
|
1337 |
+
share=True,
|
1338 |
auth=("it1","chosun1"),
|
1339 |
ssl_verify=False,
|
1340 |
show_error=True
|