Spaces:
Runtime error
Runtime error
Update appStore/keyword_search.py
Browse files
appStore/keyword_search.py
CHANGED
@@ -78,11 +78,15 @@ def app():
|
|
78 |
with tempfile.NamedTemporaryFile(mode="wb") as temp:
|
79 |
bytes_data = file.getvalue()
|
80 |
temp.write(bytes_data)
|
81 |
-
|
|
|
|
|
|
|
|
|
82 |
st.write("Filename: ", file.name)
|
83 |
|
84 |
# load document
|
85 |
-
documents = pre.load_document(temp.name,
|
86 |
documents_processed = pre.preprocessing(documents)
|
87 |
pipeline = start_haystack(documents_processed)
|
88 |
#docs = pre.load_document(temp.name, file)
|
|
|
78 |
with tempfile.NamedTemporaryFile(mode="wb") as temp:
|
79 |
bytes_data = file.getvalue()
|
80 |
temp.write(bytes_data)
|
81 |
+
|
82 |
+
st.write("Uploaded Filename: ", uploaded_file.name)
|
83 |
+
file_name = file.name
|
84 |
+
file_path = temp.name
|
85 |
+
|
86 |
st.write("Filename: ", file.name)
|
87 |
|
88 |
# load document
|
89 |
+
documents = pre.load_document(temp.name,file_name)
|
90 |
documents_processed = pre.preprocessing(documents)
|
91 |
pipeline = start_haystack(documents_processed)
|
92 |
#docs = pre.load_document(temp.name, file)
|