Spaces:
Sleeping
Sleeping
Update ui.py
Browse files
ui.py
CHANGED
|
@@ -69,8 +69,6 @@ def APP():
|
|
| 69 |
|
| 70 |
with st.form("bio",border=False):
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
project_name=None
|
| 75 |
target=None
|
| 76 |
|
|
@@ -83,12 +81,15 @@ def APP():
|
|
| 83 |
"Content-Type":"application/json",
|
| 84 |
"Authorization":f"Bearer {tok}"
|
| 85 |
})
|
| 86 |
-
st.write(response)
|
|
|
|
| 87 |
#project_details=response.json()
|
| 88 |
#if project_details.get("projectname") !=None or project_details.get("projectname") !="":
|
| 89 |
# st.session_state.projectname = project_details.get("projectname")
|
| 90 |
-
|
|
|
|
| 91 |
scan_for_project_availability(st.user.email)
|
|
|
|
| 92 |
|
| 93 |
if st.session_state.projectname and st.session_state.projectname == "":
|
| 94 |
with st.expander("set up the project before proceeding ."):
|
|
@@ -104,9 +105,6 @@ def APP():
|
|
| 104 |
|
| 105 |
if execute_button:
|
| 106 |
|
| 107 |
-
|
| 108 |
-
##st.session_state.projectname = project_name
|
| 109 |
-
#st.session_state.username = uid
|
| 110 |
if not project_name:
|
| 111 |
st.markdown(":orange-badge[⚠️ Set Projectname]")
|
| 112 |
else:
|
|
@@ -131,9 +129,6 @@ def APP():
|
|
| 131 |
|
| 132 |
st.markdown(f"## {plan_response}")
|
| 133 |
|
| 134 |
-
#else:
|
| 135 |
-
# st.error("Please fill in both username and project name before submitting")
|
| 136 |
-
|
| 137 |
|
| 138 |
if selection == 1:
|
| 139 |
st.markdown("<p style='color:white;background-color:orange;font-weight:bold'>Vaccine [Supported] </p>",unsafe_allow_html=True)
|
|
|
|
| 69 |
|
| 70 |
with st.form("bio",border=False):
|
| 71 |
|
|
|
|
|
|
|
| 72 |
project_name=None
|
| 73 |
target=None
|
| 74 |
|
|
|
|
| 81 |
"Content-Type":"application/json",
|
| 82 |
"Authorization":f"Bearer {tok}"
|
| 83 |
})
|
| 84 |
+
st.write(response.text)
|
| 85 |
+
|
| 86 |
#project_details=response.json()
|
| 87 |
#if project_details.get("projectname") !=None or project_details.get("projectname") !="":
|
| 88 |
# st.session_state.projectname = project_details.get("projectname")
|
| 89 |
+
|
| 90 |
+
|
| 91 |
scan_for_project_availability(st.user.email)
|
| 92 |
+
|
| 93 |
|
| 94 |
if st.session_state.projectname and st.session_state.projectname == "":
|
| 95 |
with st.expander("set up the project before proceeding ."):
|
|
|
|
| 105 |
|
| 106 |
if execute_button:
|
| 107 |
|
|
|
|
|
|
|
|
|
|
| 108 |
if not project_name:
|
| 109 |
st.markdown(":orange-badge[⚠️ Set Projectname]")
|
| 110 |
else:
|
|
|
|
| 129 |
|
| 130 |
st.markdown(f"## {plan_response}")
|
| 131 |
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
if selection == 1:
|
| 134 |
st.markdown("<p style='color:white;background-color:orange;font-weight:bold'>Vaccine [Supported] </p>",unsafe_allow_html=True)
|