kaixinwang commited on
Commit
2fc8ad9
·
1 Parent(s): 6432a5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -1,5 +1,13 @@
1
- $ pip install tensorflow
2
- $ pip install numpy
 
 
 
 
 
 
 
 
3
 
4
  import streamlit as st
5
  import numpy as np
 
1
+ import pip
2
+
3
+ def install(package):
4
+ if hasattr(pip, 'main'):
5
+ pip.main(['install', package])
6
+ else:
7
+ pip._internal.main(['install', package])
8
+
9
+ install("tensorflow")
10
+ install("numpy")
11
 
12
  import streamlit as st
13
  import numpy as np