Update app.py
Browse files
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[:
|
| 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()
|