AIRider commited on
Commit
0075b4d
·
verified ·
1 Parent(s): 18844e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
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
- fn=get_blog_content,
63
- inputs=gr.Textbox(label="링크를 입력하세요"),
64
- outputs=gr.Textbox(label="블로그 제목"),
65
- title="블로그 제목 가져오기",
66
- description="링크를 입력하여 블로그 제목을 가져옵니다"
67
- ) as blog_content_interface:
68
- blog_content_interface.launch()
 
 
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()