legaltechgc commited on
Commit
08007d3
·
verified ·
1 Parent(s): e7c1b8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ if page == "Upload Knowledge":
88
  st.write(f"Detected language: {detected_lang}")
89
  except LangDetectException:
90
  st.error("Could not detect the language of the webpage.")
91
- continue
92
 
93
  # Generate embedding
94
  embedding = embedding_model.encode([text])[0]
 
88
  st.write(f"Detected language: {detected_lang}")
89
  except LangDetectException:
90
  st.error("Could not detect the language of the webpage.")
91
+ return # Stop further processing of the URL
92
 
93
  # Generate embedding
94
  embedding = embedding_model.encode([text])[0]