Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -970,7 +970,7 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI 서비스") as
|
|
970 |
|
971 |
|
972 |
|
973 |
-
# 국가별 탭 이벤트 연결
|
974 |
search_outputs = [
|
975 |
status_message,
|
976 |
translated_query_display,
|
@@ -998,8 +998,20 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI 서비스") as
|
|
998 |
]
|
999 |
|
1000 |
|
|
|
1001 |
# AI 리포터 탭 이벤트 연결
|
|
|
1002 |
for comp in hn_article_components:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1003 |
comp['report_button'].click(
|
1004 |
fn=generate_report,
|
1005 |
inputs=[
|
@@ -1024,9 +1036,8 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI 서비스") as
|
|
1024 |
comp['show_report']
|
1025 |
]
|
1026 |
)
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
refresh_button.click(
|
1031 |
fn=refresh_hn_stories,
|
1032 |
outputs=hn_outputs
|
@@ -1035,6 +1046,8 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI 서비스") as
|
|
1035 |
|
1036 |
|
1037 |
|
|
|
|
|
1038 |
iface.launch(
|
1039 |
server_name="0.0.0.0",
|
1040 |
server_port=7860,
|
|
|
970 |
|
971 |
|
972 |
|
973 |
+
# 국가별 탭 이벤트 연결
|
974 |
search_outputs = [
|
975 |
status_message,
|
976 |
translated_query_display,
|
|
|
998 |
]
|
999 |
|
1000 |
|
1001 |
+
|
1002 |
# AI 리포터 탭 이벤트 연결
|
1003 |
+
hn_outputs = [status_message_hn]
|
1004 |
for comp in hn_article_components:
|
1005 |
+
hn_outputs.extend([
|
1006 |
+
comp['group'],
|
1007 |
+
comp['title'],
|
1008 |
+
comp['info'],
|
1009 |
+
comp['report_button'],
|
1010 |
+
comp['report_content'],
|
1011 |
+
comp['show_report']
|
1012 |
+
])
|
1013 |
+
|
1014 |
+
# 각 컴포넌트의 이벤트 연결
|
1015 |
comp['report_button'].click(
|
1016 |
fn=generate_report,
|
1017 |
inputs=[
|
|
|
1036 |
comp['show_report']
|
1037 |
]
|
1038 |
)
|
1039 |
+
|
1040 |
+
# 새로고침 버튼 이벤트 연결
|
|
|
1041 |
refresh_button.click(
|
1042 |
fn=refresh_hn_stories,
|
1043 |
outputs=hn_outputs
|
|
|
1046 |
|
1047 |
|
1048 |
|
1049 |
+
|
1050 |
+
|
1051 |
iface.launch(
|
1052 |
server_name="0.0.0.0",
|
1053 |
server_port=7860,
|