Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,6 @@ 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 |
-
var=st.text_input("write keyword")
|
10 |
-
title = var.replace(' ','+')
|
11 |
|
12 |
def create_chunks(text):
|
13 |
text_splitter = TokenTextSplitter(chunk_size=500, chunk_overlap=0)
|
@@ -49,12 +47,10 @@ def get_chunks():
|
|
49 |
"status":giz_df.loc[i,'status'],
|
50 |
"title_main":giz_df.loc[i,'title_main'],}))
|
51 |
return placeholder
|
52 |
-
|
53 |
|
54 |
|
55 |
button=st.button("search")
|
56 |
|
57 |
-
chunks = get_chunks()
|
58 |
-
|
59 |
if button :
|
60 |
st.write(placeholder[0])
|
|
|
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)
|
|
|
47 |
"status":giz_df.loc[i,'status'],
|
48 |
"title_main":giz_df.loc[i,'title_main'],}))
|
49 |
return placeholder
|
50 |
+
chunks = get_chunks()
|
51 |
|
52 |
|
53 |
button=st.button("search")
|
54 |
|
|
|
|
|
55 |
if button :
|
56 |
st.write(placeholder[0])
|