Junaidb commited on
Commit
1e012c1
·
verified ·
1 Parent(s): 138e307

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +25 -18
ui.py CHANGED
@@ -31,25 +31,32 @@ def APP():
31
 
32
  with tab1:
33
  with st.form("bio",border=False):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
- project_name=st.text_input("enter project name ")
36
- user_input = st.text_area(
37
- "Protein Engineering Query",
38
- placeholder="Type your query here."
39
- )
40
- execute_button=st.form_submit_button("execute")
41
-
42
- if execute_button:
43
-
44
- st.session_state.projectname = project_name
45
- output=None
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: