Skip to content

Commit c654afe

Browse files
committed
connection issue
1 parent 28ac759 commit c654afe

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

backend/src/graph_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
from neo4j.debug import watch
66

7-
watch("neo4j")
7+
#watch("neo4j")
88

99
QUERY_MAP = {
1010
"document" : " + [docs] ",

backend/src/shared/common_fn.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from pathlib import Path
1313
from neo4j.debug import watch
1414

15-
watch("neo4j")
15+
#watch("neo4j")
1616

1717
def check_url_source(source_type, yt_url:str=None, queries_list:List[str]=None):
1818
try:
@@ -62,7 +62,8 @@ def get_chunk_and_graphDocument(graph_document_list, chunkId_chunkDoc_list):
6262
return lst_chunk_chunkId_document
6363

6464
def create_graph_database_connection(uri, userName, password, database):
65-
graph = Neo4jGraph(url=uri, database=database, username=userName, password=password, driver_config={'user_agent':os.environ.get('NEO4J_USER_AGENT')})
65+
graph = Neo4jGraph(url=uri, database=database, username=userName, password=password)
66+
#driver_config={'user_agent':os.environ.get('NEO4J_USER_AGENT')}
6667
return graph
6768

6869

frontend/src/components/DropZone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const DropZone: FunctionComponent = () => {
209209
className='bg-none'
210210
supportedFilesDescription={'Supports: PDF Files'}
211211
dropZoneOptions={{
212-
// accept: { 'application/pdf': ['.pdf'] },
212+
accept: { 'application/pdf': ['.pdf'] },
213213
onDrop: (f: Partial<globalThis.File>[]) => {
214214
onDropHandler(f);
215215
},

0 commit comments

Comments
 (0)