Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -954,19 +954,23 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css, title="NewsAI 서비스") as
|
|
954 |
]
|
955 |
|
956 |
|
|
|
957 |
# AI 리포터 탭 이벤트 연결
|
958 |
for comp in hn_article_components:
|
959 |
comp['report_button'].click(
|
960 |
generate_report,
|
961 |
inputs=[comp['title'], comp['info']],
|
962 |
-
outputs=[comp['report_content'], comp['show_report']]
|
|
|
963 |
)
|
964 |
-
|
965 |
comp['show_report'].click(
|
966 |
toggle_report,
|
967 |
-
inputs=[comp['report_content']],
|
968 |
outputs=[comp['report_content']]
|
969 |
)
|
|
|
|
|
970 |
|
971 |
hn_outputs = [status_message_hn]
|
972 |
for comp in hn_article_components:
|
|
|
954 |
]
|
955 |
|
956 |
|
957 |
+
|
958 |
# AI 리포터 탭 이벤트 연결
|
959 |
for comp in hn_article_components:
|
960 |
comp['report_button'].click(
|
961 |
generate_report,
|
962 |
inputs=[comp['title'], comp['info']],
|
963 |
+
outputs=[comp['report_content'], comp['show_report']],
|
964 |
+
show_progress=True
|
965 |
)
|
966 |
+
|
967 |
comp['show_report'].click(
|
968 |
toggle_report,
|
969 |
+
inputs=[comp['report_content']],
|
970 |
outputs=[comp['report_content']]
|
971 |
)
|
972 |
+
|
973 |
+
|
974 |
|
975 |
hn_outputs = [status_message_hn]
|
976 |
for comp in hn_article_components:
|