peter2000 commited on
Commit
0bb6ca7
1 Parent(s): 542484a

Update appStore/keyword_search.py

Browse files
Files changed (1) hide show
  1. appStore/keyword_search.py +6 -2
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,file)
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)