Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ url=st.text_input("Enter webiste URL to summarize (format: https://www.usinoip.c
|
|
| 47 |
|
| 48 |
#loader = WebBaseLoader("https://www.usinoip.com/")
|
| 49 |
|
| 50 |
-
if
|
| 51 |
try:
|
| 52 |
loader = WebBaseLoader(url)
|
| 53 |
with st.spinner("AI Thinking...Please wait a while to Cheers!"):
|
|
|
|
| 47 |
|
| 48 |
#loader = WebBaseLoader("https://www.usinoip.com/")
|
| 49 |
|
| 50 |
+
if url !="" and not url.strip().isspace() and not url == "" and not url.strip() == "" and not url.isspace():
|
| 51 |
try:
|
| 52 |
loader = WebBaseLoader(url)
|
| 53 |
with st.spinner("AI Thinking...Please wait a while to Cheers!"):
|