heymenn commited on
Commit
9f14c91
·
verified ·
1 Parent(s): b49aea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -1,5 +1,15 @@
1
  import gradio as gr
2
 
 
 
 
 
 
 
 
 
 
 
3
  import os
4
  from langchain_community.graphs import Neo4jGraph
5
  from langchain.chains import GraphCypherQAChain
 
1
  import gradio as gr
2
 
3
+ import subprocess
4
+ import sys
5
+
6
+ def install(package):
7
+ subprocess.check_call([sys.executable, "-m", "pip", "install", package])
8
+
9
+ install("langchain_community")
10
+ install("langchain_openai")
11
+ install("langchain")
12
+
13
  import os
14
  from langchain_community.graphs import Neo4jGraph
15
  from langchain.chains import GraphCypherQAChain