RuijiaTan commited on
Commit
59926cd
1 Parent(s): c66f952

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -1,5 +1,13 @@
1
- from pip._internal import main
2
- main(['install', 'matminer'])
 
 
 
 
 
 
 
 
3
 
4
  import os
5
  import gradio as gr
 
1
+ # from pip._internal import main
2
+ # main(['install', 'matminer'])
3
+
4
+ import subprocess
5
+ import sys
6
+
7
+ def install_package(package):
8
+ subprocess.check_call([sys.executable, "-m", "pip", "install", package])
9
+
10
+ install_package('matminer')
11
 
12
  import os
13
  import gradio as gr