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

install and import apex from wheel

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,8 +1,12 @@
1
- import os
2
  import streamlit as st
3
  from itertools import tee
4
  from model import InferenceBuilder
5
 
 
 
 
 
6
  MODEL_AVATAR_URL= "./iphone_robot.png"
7
  MAX_CHAT_TURNS = 10 # limit this for preliminary testing
8
  MSG_MAX_TURNS_EXCEEDED = f"Sorry! The CyberSolve LinAlg playground is limited to {MAX_CHAT_TURNS} turns in a single history. Click the 'Clear Chat' button or refresh the page to start a new conversation."
 
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"
11
  MAX_CHAT_TURNS = 10 # limit this for preliminary testing
12
  MSG_MAX_TURNS_EXCEEDED = f"Sorry! The CyberSolve LinAlg playground is limited to {MAX_CHAT_TURNS} turns in a single history. Click the 'Clear Chat' button or refresh the page to start a new conversation."