Spaces:
Sleeping
Sleeping
add extract from web endpoint
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def extract_background_from_url(url: str):
|
|
132 |
|
133 |
|
134 |
@app.get("/extract-page-text/")
|
135 |
-
def extract_page_content(url: str, max_char: int = 5000)
|
136 |
try:
|
137 |
response = requests.get(url, timeout=20, verify=False)
|
138 |
response.raise_for_status()
|
|
|
132 |
|
133 |
|
134 |
@app.get("/extract-page-text/")
|
135 |
+
def extract_page_content(url: str, max_char: int = 5000):
|
136 |
try:
|
137 |
response = requests.get(url, timeout=20, verify=False)
|
138 |
response.raise_for_status()
|