seawolf2357 commited on
Commit
405a8de
·
verified ·
1 Parent(s): 4012bf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -12,7 +12,7 @@ def extract_pdf_links(url):
12
  if re.search(r'\.pdf', link['href']):
13
  pdf_links.append(link['href'])
14
 
15
- return pdf_links[:10]
16
 
17
  def generate_html(pdf_links):
18
  html = ""
@@ -22,6 +22,8 @@ def generate_html(pdf_links):
22
 
23
  iface = gr.Interface(extract_pdf_links,
24
  inputs="text",
25
- outputs="text")
 
 
26
 
27
  iface.launch()
 
12
  if re.search(r'\.pdf', link['href']):
13
  pdf_links.append(link['href'])
14
 
15
+ return pdf_links[:100]
16
 
17
  def generate_html(pdf_links):
18
  html = ""
 
22
 
23
  iface = gr.Interface(extract_pdf_links,
24
  inputs="text",
25
+ outputs="text",
26
+ input_type="textarea",
27
+ value="https://finance.naver.com/research/company_list.naver")
28
 
29
  iface.launch()