GiantAnalytics commited on
Commit
6f07ba4
·
verified ·
1 Parent(s): 51dcf2b

Updating URL

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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