Kims12 commited on
Commit
8615b9e
·
verified ·
1 Parent(s): 24b80cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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.inputs.Textbox(
70
  lines=1,
71
  label="네이버 블로그 링크",
72
  placeholder="예: https://blog.naver.com/ssboost/222983068507"
73
  ),
74
- outputs=gr.outputs.Textbox(label="결과"),
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
  )