Skip to content

Commit 105b5d5

Browse files
minor issue fixed
1 parent 53e0932 commit 105b5d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/score.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,8 @@ async def extract_knowledge_graph_from_file(
212212
start_time = time.time()
213213
graph = create_graph_database_connection(uri, userName, password, database)
214214
graphDb_data_Access = graphDBdataAccess(graph)
215+
merged_file_path = os.path.join(MERGED_DIR,file_name)
215216
if source_type == 'local file':
216-
merged_file_path = os.path.join(MERGED_DIR,file_name)
217-
logging.info(f'File path:{merged_file_path}')
218217
uri_latency, result = await extract_graph_from_file_local_file(uri, userName, password, database, model, merged_file_path, file_name, allowedNodes, allowedRelationship, retry_condition, additional_instructions)
219218

220219
elif source_type == 's3 bucket' and source_url:
@@ -323,6 +322,7 @@ async def post_processing(uri=Form(), userName=Form(), password=Form(), database
323322
try:
324323
graph = create_graph_database_connection(uri, userName, password, database)
325324
tasks = set(map(str.strip, json.loads(tasks)))
325+
api_name = 'post_processing'
326326
count_response = []
327327
start = time.time()
328328
if "materialize_text_chunk_similarities" in tasks:

0 commit comments

Comments
 (0)