Spaces:
Build error
Build error
Updating URL
Browse files
app.py
CHANGED
|
@@ -56,6 +56,10 @@ faiss_db_path = os.path.join(temp_dir, "faiss_index_dir")
|
|
| 56 |
|
| 57 |
# Function to fetch and process website data
|
| 58 |
def build_embeddings(url):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
st.info("Fetching and processing website data...")
|
| 60 |
|
| 61 |
# Load website data
|
|
|
|
| 56 |
|
| 57 |
# Function to fetch and process website data
|
| 58 |
def build_embeddings(url):
|
| 59 |
+
# Ensure the URL has the correct scheme (http:// or https://)
|
| 60 |
+
if not url.startswith(('http://', 'https://')):
|
| 61 |
+
url = 'https://' + url
|
| 62 |
+
|
| 63 |
st.info("Fetching and processing website data...")
|
| 64 |
|
| 65 |
# Load website data
|