Spaces:
Running
Running
Update ui.py
Browse files
ui.py
CHANGED
@@ -31,25 +31,32 @@ def APP():
|
|
31 |
|
32 |
with tab1:
|
33 |
with st.form("bio",border=False):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
if output:
|
47 |
-
with console_container:
|
48 |
-
st.code(f"> {output}", language="rust")
|
49 |
-
st.success("Task completed!")
|
50 |
-
else:
|
51 |
-
with console_container:
|
52 |
-
st.warning(">>>Error")
|
53 |
|
54 |
|
55 |
with tab2:
|
|
|
31 |
|
32 |
with tab1:
|
33 |
with st.form("bio",border=False):
|
34 |
+
|
35 |
+
with st.expander(icon=":material/Settings:"):
|
36 |
+
uid=st.text_input("enter username")
|
37 |
+
project_name=st.text_input("enter project name ")
|
38 |
+
|
39 |
+
|
40 |
+
if uid and project_name == "":
|
41 |
+
st.markdown(":orange-badge[⚠️ Set Username and Projectname ]")
|
42 |
+
else:
|
43 |
+
user_input = st.text_area(
|
44 |
+
"Protein Engineering Query",
|
45 |
+
placeholder="Type your query here."
|
46 |
+
)
|
47 |
+
execute_button=st.form_submit_button("execute")
|
48 |
|
49 |
+
if execute_button:
|
50 |
+
|
51 |
+
st.session_state.projectname = project_name
|
52 |
+
output=None
|
53 |
+
if output:
|
54 |
+
with console_container:
|
55 |
+
st.code(f"> {output}", language="rust")
|
56 |
+
st.success("Task completed!")
|
57 |
+
else:
|
58 |
+
with console_container:
|
59 |
+
st.warning(">>>Error")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
|
62 |
with tab2:
|