kevinhug commited on
Commit
3c1b8db
·
1 Parent(s): 91b56ef

knowledge graph

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -3,6 +3,18 @@ from rag import rbc_product
3
  from tool import rival_product
4
  from graphrag import reasoning
5
  from knowledge import graph
 
 
 
 
 
 
 
 
 
 
 
 
6
  with gr.Blocks() as demo:
7
  with gr.Tab("RAG"):
8
  gr.Markdown("""
 
3
  from tool import rival_product
4
  from graphrag import reasoning
5
  from knowledge import graph
6
+
7
+ '''
8
+ NotImplementedError: cannot instantiate ‘WindowsPath’ on your system
9
+ '''
10
+ import pathlib
11
+ import platform
12
+ plt = platform.system()
13
+ if plt == 'Windows':
14
+ pathlib.PosixPath = pathlib.WindowsPath
15
+ else:
16
+ pathlib.WindowsPath = pathlib.PosixPath
17
+
18
  with gr.Blocks() as demo:
19
  with gr.Tab("RAG"):
20
  gr.Markdown("""