Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,19 @@
|
|
1 |
import streamlit as st
|
2 |
-
|
3 |
|
4 |
st.title("Hello World")
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
+
from trainer import Trainer
|
3 |
|
4 |
st.title("Hello World")
|
5 |
|
6 |
+
class DrugGENConfig:
|
7 |
+
submodel='CrossLoss'
|
8 |
+
act='relu'
|
9 |
+
|
10 |
+
|
11 |
+
with st.spinner('Setting up the trainer class...'):
|
12 |
+
trainer = Trainer(config)
|
13 |
+
|
14 |
+
with st.spinner('Generating Molecules...'):
|
15 |
+
trainer.inference()
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|