Update app.py
Browse files
app.py
CHANGED
@@ -62,16 +62,16 @@ def scrape_naver_blog(url: str) -> str:
|
|
62 |
|
63 |
# Gradio 인터페이스
|
64 |
def main_interface():
|
65 |
-
#
|
66 |
-
#
|
67 |
interface = gr.Interface(
|
68 |
fn=scrape_naver_blog,
|
69 |
-
inputs=gr.
|
70 |
lines=1,
|
71 |
label="네이버 블로그 링크",
|
72 |
placeholder="예: https://blog.naver.com/ssboost/222983068507"
|
73 |
),
|
74 |
-
outputs=gr.
|
75 |
title="네이버 블로그 스크래퍼",
|
76 |
description="네이버 블로그 링크를 입력하면 제목과 본문을 추출하여 표시합니다."
|
77 |
)
|
|
|
62 |
|
63 |
# Gradio 인터페이스
|
64 |
def main_interface():
|
65 |
+
# Gradio 최신버전에서는 gr.inputs, gr.outputs 대신
|
66 |
+
# gr.Textbox, gr.File 등 직접 클래스를 사용해야 합니다.
|
67 |
interface = gr.Interface(
|
68 |
fn=scrape_naver_blog,
|
69 |
+
inputs=gr.Textbox(
|
70 |
lines=1,
|
71 |
label="네이버 블로그 링크",
|
72 |
placeholder="예: https://blog.naver.com/ssboost/222983068507"
|
73 |
),
|
74 |
+
outputs=gr.Textbox(label="결과"),
|
75 |
title="네이버 블로그 스크래퍼",
|
76 |
description="네이버 블로그 링크를 입력하면 제목과 본문을 추출하여 표시합니다."
|
77 |
)
|