Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,8 @@ from langchain.docstore.document import Document
|
|
6 |
|
7 |
st.set_page_config(page_title="SEARCH IATI",layout='wide')
|
8 |
st.title("SEARCH IATI Database")
|
|
|
|
|
9 |
|
10 |
def create_chunks(text):
|
11 |
text_splitter = TokenTextSplitter(chunk_size=500, chunk_overlap=0)
|
@@ -53,4 +55,4 @@ chunks = get_chunks()
|
|
53 |
button=st.button("search")
|
54 |
|
55 |
if button :
|
56 |
-
st.write(
|
|
|
6 |
|
7 |
st.set_page_config(page_title="SEARCH IATI",layout='wide')
|
8 |
st.title("SEARCH IATI Database")
|
9 |
+
var=st.text_input("enter keyword")
|
10 |
+
title = var.replace(' ','+')
|
11 |
|
12 |
def create_chunks(text):
|
13 |
text_splitter = TokenTextSplitter(chunk_size=500, chunk_overlap=0)
|
|
|
55 |
button=st.button("search")
|
56 |
|
57 |
if button :
|
58 |
+
st.write(chunks[0])
|