Update app.py
Browse files
app.py
CHANGED
|
@@ -42,11 +42,11 @@ for i in range(3):
|
|
| 42 |
|
| 43 |
purs=st.button("gotcha", disabled=not any(url.strip() for url in urs))
|
| 44 |
if purs:
|
| 45 |
-
|
| 46 |
-
st.write(i)
|
| 47 |
mp.text("Loading..URl..Loader....☑️☑️☑️")
|
| 48 |
sic=UnstructuredURLLoader(urls=urs)
|
| 49 |
docs=sic.load()
|
|
|
|
| 50 |
mp.text("Loading..txt..splitter....☑️☑️☑️")
|
| 51 |
tot=RecursiveCharacterTextSplitter.from_tiktoken_encoder(encoding_name="cl100k_base",chunk_size=512,chunk_overlap=16)
|
| 52 |
doccs=tot.split_documents(docs)
|
|
|
|
| 42 |
|
| 43 |
purs=st.button("gotcha", disabled=not any(url.strip() for url in urs))
|
| 44 |
if purs:
|
| 45 |
+
st.write(urs)
|
|
|
|
| 46 |
mp.text("Loading..URl..Loader....☑️☑️☑️")
|
| 47 |
sic=UnstructuredURLLoader(urls=urs)
|
| 48 |
docs=sic.load()
|
| 49 |
+
st.write(len(docs))
|
| 50 |
mp.text("Loading..txt..splitter....☑️☑️☑️")
|
| 51 |
tot=RecursiveCharacterTextSplitter.from_tiktoken_encoder(encoding_name="cl100k_base",chunk_size=512,chunk_overlap=16)
|
| 52 |
doccs=tot.split_documents(docs)
|