Chris Finlayson
commited on
Commit
•
399c03f
1
Parent(s):
e5da3b4
Update dep
Browse files- app.py +1 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -170,5 +170,5 @@ outputs = [
|
|
170 |
]
|
171 |
|
172 |
description = 'This Python script generates a knowledge graph from a PDF document. It uses several libraries including gradio for the web interface, spacy for natural language processing, networkx and matplotlib for graph generation, and fitz for PDF processing.'
|
173 |
-
iface = gr.Interface(fn=execute_process, inputs=inputs, outputs=outputs, title="PDF Knowledge graph", description=description) # Create an interface
|
174 |
iface.launch() # Launch the interface
|
|
|
170 |
]
|
171 |
|
172 |
description = 'This Python script generates a knowledge graph from a PDF document. It uses several libraries including gradio for the web interface, spacy for natural language processing, networkx and matplotlib for graph generation, and fitz for PDF processing.'
|
173 |
+
iface = gr.Interface(fn=execute_process, inputs=inputs, outputs=outputs, title="PDF - NLP Knowledge graph - Interactive", description=description) # Create an interface
|
174 |
iface.launch() # Launch the interface
|
requirements.txt
CHANGED
@@ -10,4 +10,4 @@ networkx
|
|
10 |
matplotlib
|
11 |
tqdm
|
12 |
scipy
|
13 |
-
pyvis
|
|
|
10 |
matplotlib
|
11 |
tqdm
|
12 |
scipy
|
13 |
+
pyvis==0.3.1
|