Spaces:
Running
Running
Update ui.py
Browse files
ui.py
CHANGED
@@ -65,7 +65,9 @@ def APP():
|
|
65 |
st.markdown("<p style='color:white;background-color:orange;font-weight:bold'> Nanobody [CANCER targeted]</p>",unsafe_allow_html=True)
|
66 |
#with st.expander("info"):
|
67 |
#st.info("This Interface lets u specify a high level biological query (Protein Engineering Query) and execute the pipeline for the end product i.e Engineered Nanobody",icon=":material/info:")
|
68 |
-
|
|
|
|
|
69 |
with st.form("bio",border=False):
|
70 |
|
71 |
#project_name=None
|
@@ -81,7 +83,12 @@ def APP():
|
|
81 |
"Content-Type":"application/json",
|
82 |
"Authorization":f"Bearer {tok}"
|
83 |
})
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
#project_details=response.json()
|
87 |
#if project_details.get("projectname") !=None or project_details.get("projectname") !="":
|
@@ -90,13 +97,15 @@ def APP():
|
|
90 |
|
91 |
scan_for_project_availability(st.user.email)
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
projectname = st.session_state.get("projectname", "") # safe default
|
96 |
|
97 |
-
if
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
|
102 |
|
|
|
65 |
st.markdown("<p style='color:white;background-color:orange;font-weight:bold'> Nanobody [CANCER targeted]</p>",unsafe_allow_html=True)
|
66 |
#with st.expander("info"):
|
67 |
#st.info("This Interface lets u specify a high level biological query (Protein Engineering Query) and execute the pipeline for the end product i.e Engineered Nanobody",icon=":material/info:")
|
68 |
+
projects=None
|
69 |
+
projectname=None
|
70 |
+
|
71 |
with st.form("bio",border=False):
|
72 |
|
73 |
#project_name=None
|
|
|
83 |
"Content-Type":"application/json",
|
84 |
"Authorization":f"Bearer {tok}"
|
85 |
})
|
86 |
+
response_json=response.json()
|
87 |
+
projects=response_json.get("projects")
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
|
93 |
#project_details=response.json()
|
94 |
#if project_details.get("projectname") !=None or project_details.get("projectname") !="":
|
|
|
97 |
|
98 |
scan_for_project_availability(st.user.email)
|
99 |
|
|
|
|
|
|
|
100 |
|
101 |
+
if projects !=None or if projects != "":
|
102 |
+
|
103 |
+
|
104 |
+
projectname = st.session_state.get("projectname", "") # safe default
|
105 |
+
|
106 |
+
if projectname == "":
|
107 |
+
with st.expander("Set up the project before proceeding."):
|
108 |
+
projectname = st.text_input("Provide project name > ")
|
109 |
|
110 |
|
111 |
|