Spaces:
Runtime error
Runtime error
xuyingli
commited on
Commit
·
9a88d36
1
Parent(s):
8f74fa3
Update app.py
Browse files
app.py
CHANGED
@@ -289,7 +289,7 @@ with st.spinner("Loading Models..."):
|
|
289 |
# Initialize SAGE model
|
290 |
if 'xq' not in st.session_state:
|
291 |
st.session_state.model, st.session_state.alphabet = init_esm()
|
292 |
-
batch_converter = alphabet.get_batch_converter()
|
293 |
st.session_state['batch'] = batch_converter
|
294 |
st.session_state.query_num = 0
|
295 |
|
|
|
289 |
# Initialize SAGE model
|
290 |
if 'xq' not in st.session_state:
|
291 |
st.session_state.model, st.session_state.alphabet = init_esm()
|
292 |
+
batch_converter = st.session_state.alphabet.get_batch_converter()
|
293 |
st.session_state['batch'] = batch_converter
|
294 |
st.session_state.query_num = 0
|
295 |
|