Junaidb commited on
Commit
f7d1d03
·
verified ·
1 Parent(s): 96598fd

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +9 -6
ui.py CHANGED
@@ -82,8 +82,10 @@ def APP():
82
  if agree:
83
  #projectname = st.selectbox("Select Project", projects)
84
  projectname = st.text_input("Enter project name:")
 
85
  else:
86
  projectname = st.selectbox("Select Project", projects)
 
87
 
88
  else:
89
  projectname = st.text_input("Enter project name:")
@@ -108,10 +110,10 @@ def APP():
108
  def SHOWTABS():
109
  if tab_selection == 0:
110
  # Two-column split
111
- left_col, right_col = st.columns([0.3, 0.7],vertical_alignment="center",border=True)
112
 
113
  # CSS to make right column sticky
114
- st.markdown("""
115
  <style>
116
  [data-testid="column"]:nth-of-type(2) {
117
  position: sticky;
@@ -124,9 +126,9 @@ def APP():
124
  border-left: 1px solid rgba(255,255,255,0.1);
125
  }
126
  </style>
127
- """, unsafe_allow_html=True)
128
-
129
- with left_col:
130
  option_map = {
131
  0: "@OriginAI Nanobody Engineering:",
132
  }
@@ -147,7 +149,8 @@ def APP():
147
 
148
 
149
 
150
- with right_col:
 
151
  bio_input = st.chat_input(" Ready for Action ! ")
152
 
153
  # FIXED: Removed caching and added force_refresh parameter
 
82
  if agree:
83
  #projectname = st.selectbox("Select Project", projects)
84
  projectname = st.text_input("Enter project name:")
85
+ st.session_state.projectname=projectname
86
  else:
87
  projectname = st.selectbox("Select Project", projects)
88
+ st.session_state.projectname=projectname
89
 
90
  else:
91
  projectname = st.text_input("Enter project name:")
 
110
  def SHOWTABS():
111
  if tab_selection == 0:
112
  # Two-column split
113
+ #left_col, right_col = st.columns([0.3, 0.7],vertical_alignment="center",border=True)
114
 
115
  # CSS to make right column sticky
116
+ st.markdown("""
117
  <style>
118
  [data-testid="column"]:nth-of-type(2) {
119
  position: sticky;
 
126
  border-left: 1px solid rgba(255,255,255,0.1);
127
  }
128
  </style>
129
+ """, unsafe_allow_html=True)
130
+ '''
131
+ with left_col:
132
  option_map = {
133
  0: "@OriginAI Nanobody Engineering:",
134
  }
 
149
 
150
 
151
 
152
+ with right_col:
153
+ '''
154
  bio_input = st.chat_input(" Ready for Action ! ")
155
 
156
  # FIXED: Removed caching and added force_refresh parameter