Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ SUPPORTED_TTS_LANGUAGES = {
|
|
29 |
"pt": "p", # Brazilian Portuguese
|
30 |
}
|
31 |
|
32 |
-
### 1️⃣ Fetch and Extract Content
|
33 |
-
def
|
34 |
"""Fetch and extract text from a given URL (HTML or PDF)."""
|
35 |
if url.endswith(".pdf") or "pdf" in url:
|
36 |
converter = DocumentConverter()
|
|
|
29 |
"pt": "p", # Brazilian Portuguese
|
30 |
}
|
31 |
|
32 |
+
### 1️⃣ Fetch and Extract Content (Runs Immediately)
|
33 |
+
def fetch_and_display_content(url):
|
34 |
"""Fetch and extract text from a given URL (HTML or PDF)."""
|
35 |
if url.endswith(".pdf") or "pdf" in url:
|
36 |
converter = DocumentConverter()
|