Spaces:
Running
Running
Update ui.py
Browse files
ui.py
CHANGED
|
@@ -5,7 +5,11 @@ import os
|
|
| 5 |
|
| 6 |
tok=os.getenv("TOK")
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
def InitSession():
|
|
@@ -73,21 +77,18 @@ def APP():
|
|
| 73 |
with st.form("bio",border=False):
|
| 74 |
|
| 75 |
|
| 76 |
-
|
| 77 |
project_name=None
|
| 78 |
-
|
|
|
|
| 79 |
|
| 80 |
-
|
| 81 |
project_name=st.text_input("enter project name ")
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
target_antigen=st.text_input("Set up the target antigen ")
|
| 85 |
|
| 86 |
-
if not
|
| 87 |
-
st.markdown(":orange-badge[⚠️ Set
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
|
| 92 |
bio_input = st.text_area(
|
| 93 |
"Protein Engineering Query",
|
|
@@ -101,7 +102,7 @@ def APP():
|
|
| 101 |
st.session_state.username = uid
|
| 102 |
|
| 103 |
payload={
|
| 104 |
-
"uid":
|
| 105 |
"pid":project_name,
|
| 106 |
"high_level_bio_query":bio_input
|
| 107 |
}
|
|
|
|
| 5 |
|
| 6 |
tok=os.getenv("TOK")
|
| 7 |
|
| 8 |
+
st.set_page_config(
|
| 9 |
+
|
| 10 |
+
layout="centered"
|
| 11 |
+
|
| 12 |
+
)
|
| 13 |
|
| 14 |
|
| 15 |
def InitSession():
|
|
|
|
| 77 |
with st.form("bio",border=False):
|
| 78 |
|
| 79 |
|
| 80 |
+
|
| 81 |
project_name=None
|
| 82 |
+
target=None
|
| 83 |
+
|
| 84 |
|
| 85 |
+
with st.expander("project settings",icon=":material/settings:"):
|
| 86 |
project_name=st.text_input("enter project name ")
|
| 87 |
+
target=st.text_input("Set up the target antigen ")
|
|
|
|
|
|
|
| 88 |
|
| 89 |
+
if not project_name or not target:
|
| 90 |
+
st.markdown(":orange-badge[⚠️ Set Projectname and Target Antigen before proceeding]")
|
| 91 |
+
|
|
|
|
|
|
|
| 92 |
|
| 93 |
bio_input = st.text_area(
|
| 94 |
"Protein Engineering Query",
|
|
|
|
| 102 |
st.session_state.username = uid
|
| 103 |
|
| 104 |
payload={
|
| 105 |
+
"uid":st.user.email ,
|
| 106 |
"pid":project_name,
|
| 107 |
"high_level_bio_query":bio_input
|
| 108 |
}
|