Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -56,13 +56,15 @@ with gr.Interface(
|
|
56 |
title="네이버 검색 제목과 링크 크롤러",
|
57 |
description="검색 쿼리를 입력하여 네이버 검색 결과에서 제목과 링크를 크롤링합니다"
|
58 |
) as demo:
|
|
|
59 |
demo.launch()
|
60 |
|
61 |
-
with gr.Interface(
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
) as blog_content_interface:
|
68 |
-
|
|
|
|
56 |
title="네이버 검색 제목과 링크 크롤러",
|
57 |
description="검색 쿼리를 입력하여 네이버 검색 결과에서 제목과 링크를 크롤링합니다"
|
58 |
) as demo:
|
59 |
+
button = gr.Button("블로그 제목 가져오기")
|
60 |
demo.launch()
|
61 |
|
62 |
+
with gr.Interface(
|
63 |
+
fn=get_blog_content,
|
64 |
+
inputs=gr.Textbox(label="링크를 입력하세요"),
|
65 |
+
outputs=gr.Textbox(label="블로그 제목"),
|
66 |
+
title="블로그 제목 가져오기",
|
67 |
+
description="링크를 입력하여 블로그 제목을 가져옵니다"
|
68 |
+
) as blog_content_interface:
|
69 |
+
button.click(fn=get_blog_content, inputs="링크를 입력하세요", outputs="블로그 제목")
|
70 |
+
blog_content_interface.launch()
|