Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def fetch_page_content(url: str):
|
|
| 41 |
for each in ["Page not available","403 Forbidden"]:
|
| 42 |
if each in text:
|
| 43 |
return "No information found!"
|
| 44 |
-
return text[:
|
| 45 |
except Exception as e:
|
| 46 |
return f"Error fetching page: {str(e)}"
|
| 47 |
|
|
|
|
| 41 |
for each in ["Page not available","403 Forbidden"]:
|
| 42 |
if each in text:
|
| 43 |
return "No information found!"
|
| 44 |
+
return text[:3500] # Limit to 3.5k characters
|
| 45 |
except Exception as e:
|
| 46 |
return f"Error fetching page: {str(e)}"
|
| 47 |
|