Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,32 +2,36 @@ import streamlit as st
|
|
2 |
import demo
|
3 |
|
4 |
st.set_page_config(
|
5 |
-
page_title="
|
6 |
page_icon="🧬",
|
7 |
layout="wide",
|
8 |
initial_sidebar_state="expanded",
|
9 |
)
|
10 |
|
11 |
-
st.title("Protein Design
|
12 |
|
13 |
# sidebar
|
14 |
-
st.sidebar.header("
|
15 |
|
16 |
-
#
|
17 |
demoDict={
|
18 |
-
"
|
19 |
-
"
|
20 |
-
"
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
|
|
|
|
|
|
25 |
|
26 |
}
|
27 |
-
#
|
28 |
-
selected_branch = st.sidebar.selectbox("Select
|
29 |
-
style=st.sidebar.selectbox("Select
|
30 |
-
resn=st.sidebar.selectbox("Select
|
|
|
31 |
|
32 |
-
#
|
33 |
demoDict[selected_branch](style,resn)
|
|
|
2 |
import demo
|
3 |
|
4 |
st.set_page_config(
|
5 |
+
page_title="GenAI for Protein Design",
|
6 |
page_icon="🧬",
|
7 |
layout="wide",
|
8 |
initial_sidebar_state="expanded",
|
9 |
)
|
10 |
|
11 |
+
st.title("Protein Design Driven by Chroma")
|
12 |
|
13 |
# sidebar
|
14 |
+
#st.sidebar.header("Config")
|
15 |
|
16 |
+
# the mapping between the function and use case
|
17 |
demoDict={
|
18 |
+
"UnconditionalGenerate":demo.GenerateProteinDemo,
|
19 |
+
"ComplexGenerate":demo.complexSampleDemo,
|
20 |
+
"SymmetricGenerate":demo.symmetricSampleDemo,
|
21 |
+
"ShapeConstrainedGenerate":demo.shapeSampleDemo,
|
22 |
+
"FoldConditionGenerate":demo.foldSampleDemo,
|
23 |
+
"SecondStructureConditionGenerate":demo.ssSampleDemo,
|
24 |
+
"SubstructureConditionGenerate":demo.substructureSampleDemo,
|
25 |
+
# "NatureLanguageConditionGenerate":demo.natureLanguageSampleDemo,
|
26 |
+
"CombiningSymmetryAndSecondaryConditionGenerate":demo.cSSStructureSampleDemo,
|
27 |
+
"MergingSymmetryAndSubstructureConditionGenerate":demo.mSSubstructureSampleDemo,
|
28 |
|
29 |
}
|
30 |
+
# sidebar for demo options
|
31 |
+
selected_branch = st.sidebar.selectbox("Select the Function to Run:", list(demoDict.keys()))
|
32 |
+
style=st.sidebar.selectbox("Select Visualization Style:Can be 'stick', 'sphere', 'cross','cartoon'",('stick', 'sphere', 'cross','cartoon'),key='style')
|
33 |
+
resn=st.sidebar.selectbox("Select the Amino Acid Type to Display",
|
34 |
+
('*', 'ALA','ARG','ASN','ASP','CYS','GLN','GLU','GLY','HIS','ILE','LEU','LYS','MET','PHE','PRO','SER','THR','TRP','TYR','VAL'),key='resn')
|
35 |
|
36 |
+
# Exectuion
|
37 |
demoDict[selected_branch](style,resn)
|