Junaidb commited on
Commit
252c545
·
verified ·
1 Parent(s): 396b9bf

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +5 -14
ui.py CHANGED
@@ -27,10 +27,6 @@ def InitSession():
27
 
28
 
29
  def APP():
30
-
31
- st.markdown("""
32
- <h2>new <i style='color:red'>MATTER</i> </h2>
33
- """,unsafe_allow_html=True)
34
 
35
  tab_map = {
36
 
@@ -80,12 +76,7 @@ def APP():
80
  target=None
81
 
82
 
83
- with st.expander("project settings",icon=":material/settings:"):
84
- project_name=st.text_input("enter project name ")
85
- target=st.text_input("Set up the target antigen ")
86
-
87
-
88
-
89
 
90
  bio_input = st.text_area(
91
  "Protein Engineering Query",
@@ -98,8 +89,8 @@ def APP():
98
 
99
  ##st.session_state.projectname = project_name
100
  #st.session_state.username = uid
101
- if not project_name or not target:
102
- st.markdown(":orange-badge[⚠️ Set Projectname and Target Antigen before proceeding]")
103
  else:
104
 
105
  payload={
@@ -129,7 +120,7 @@ def APP():
129
  if selection == 1:
130
  st.markdown("<p style='color:white;background-color:orange;font-weight:bold'>Vaccine [Supported] </p>",unsafe_allow_html=True)
131
  with st.expander("info"):
132
- st.info("This Interface lets u specify a high level biological query and execute the pipeline for the end product i.e Vaccine",icon=":material/info:")
133
  st.code("coming soon")
134
 
135
  if selection ==2:
@@ -137,7 +128,7 @@ def APP():
137
 
138
 
139
  if tab_selection == 1:
140
- st.markdown("### newMATTER Bio Lab Operations")
141
 
142
  @st.cache_data(ttl=10)
143
  def fetch_ops():
 
27
 
28
 
29
  def APP():
 
 
 
 
30
 
31
  tab_map = {
32
 
 
76
  target=None
77
 
78
 
79
+ if st.session_state.projectname
 
 
 
 
 
80
 
81
  bio_input = st.text_area(
82
  "Protein Engineering Query",
 
89
 
90
  ##st.session_state.projectname = project_name
91
  #st.session_state.username = uid
92
+ if not project_name
93
+ st.markdown(":orange-badge[⚠️ Set Projectname]")
94
  else:
95
 
96
  payload={
 
120
  if selection == 1:
121
  st.markdown("<p style='color:white;background-color:orange;font-weight:bold'>Vaccine [Supported] </p>",unsafe_allow_html=True)
122
  with st.expander("info"):
123
+ st.info("",icon=":material/info:")
124
  st.code("coming soon")
125
 
126
  if selection ==2:
 
128
 
129
 
130
  if tab_selection == 1:
131
+ st.markdown("### ORIGINAI Bio Lab Operations")
132
 
133
  @st.cache_data(ttl=10)
134
  def fetch_ops():