Update app.py
Browse files
app.py
CHANGED
|
@@ -302,7 +302,7 @@ def html_to_markdown_converter(url: str, html_input: str) -> str:
|
|
| 302 |
|
| 303 |
|
| 304 |
# --- Gradio Interface Definition (Adjust description slightly) ---
|
| 305 |
-
title = "Smart Scrape Any URL or Website to Markdown
|
| 306 |
description = """
|
| 307 |
Enter a URL **or** paste HTML code directly into the text box below.
|
| 308 |
- For **URLs**, the tool attempts to extract the main article content using `readability` before converting.
|
|
@@ -345,9 +345,7 @@ iface = gr.Interface(
|
|
| 345 |
# Example with direct HTML INCLUDING list (should now work)
|
| 346 |
["", "<h1>Título Simples</h1>\n<p>Este é um parágrafo de exemplo com <strong>texto em negrito</strong> e <em>texto em itálico</em>.</p>\n<ul>\n<li>Item 1</li>\n<li>Item 2</li>\n</ul>"],
|
| 347 |
# Example direct HTML without H1
|
| 348 |
-
["", "<p>Um parágrafo sem título H1.</p><div><p>Outro conteúdo.</p></div>"]
|
| 349 |
-
# Example blocked URL
|
| 350 |
-
["http://127.0.0.1", ""]
|
| 351 |
],
|
| 352 |
cache_examples=False
|
| 353 |
)
|
|
|
|
| 302 |
|
| 303 |
|
| 304 |
# --- Gradio Interface Definition (Adjust description slightly) ---
|
| 305 |
+
title = "Smart Scrape Any URL or Website to Markdown [Expert CPU Mode]"
|
| 306 |
description = """
|
| 307 |
Enter a URL **or** paste HTML code directly into the text box below.
|
| 308 |
- For **URLs**, the tool attempts to extract the main article content using `readability` before converting.
|
|
|
|
| 345 |
# Example with direct HTML INCLUDING list (should now work)
|
| 346 |
["", "<h1>Título Simples</h1>\n<p>Este é um parágrafo de exemplo com <strong>texto em negrito</strong> e <em>texto em itálico</em>.</p>\n<ul>\n<li>Item 1</li>\n<li>Item 2</li>\n</ul>"],
|
| 347 |
# Example direct HTML without H1
|
| 348 |
+
["", "<p>Um parágrafo sem título H1.</p><div><p>Outro conteúdo.</p></div>"]
|
|
|
|
|
|
|
| 349 |
],
|
| 350 |
cache_examples=False
|
| 351 |
)
|