Skip to content

Commit

Permalink
minor variable name change
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich authored Mar 22, 2023
1 parent a8597eb commit 0814d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_react/index_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def query_index(query_text):
return response


def insert_into_index(doc_text, doc_id=None):
def insert_into_index(doc_file_path, doc_id=None):
"""Insert new document into global index."""
global index, stored_docs
document = SimpleDirectoryReader(input_files=[doc_text]).load_data()[0]
document = SimpleDirectoryReader(input_files=[doc_file_path]).load_data()[0]
if doc_id is not None:
document.doc_id = doc_id

Expand Down

0 comments on commit 0814d3a

Please sign in to comment.