John Graham Reynolds commited on
Commit
abe92b7
·
1 Parent(s): 776e498

add apex to requirements instead of building wheel in project

Browse files
Files changed (3) hide show
  1. app.py +3 -3
  2. model.py +1 -0
  3. requirements.txt +1 -0
app.py CHANGED
@@ -1,10 +1,10 @@
1
- import pip
2
  import streamlit as st
3
  from itertools import tee
4
  from model import InferenceBuilder
5
 
6
- pip.main(['install', './apex-0.1-cp311-cp311-linux_x86_64.whl']) # install the apex package from wheel since building takes forever
7
- import apex
8
 
9
 
10
  MODEL_AVATAR_URL= "./iphone_robot.png"
 
1
+ import apex
2
  import streamlit as st
3
  from itertools import tee
4
  from model import InferenceBuilder
5
 
6
+ # pip.main(['install', './apex-0.1-cp311-cp311-linux_x86_64.whl']) # install the apex package from wheel since building takes forever
7
+ # import apex
8
 
9
 
10
  MODEL_AVATAR_URL= "./iphone_robot.png"
model.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import mlflow
2
  import torch
3
  import streamlit as st
 
1
+ import apex
2
  import mlflow
3
  import torch
4
  import streamlit as st
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  torch
2
  mlflow
3
  transformers
 
1
+ apex
2
  torch
3
  mlflow
4
  transformers