Update app.py
Browse files
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
|