Spaces:
Sleeping
Sleeping
Update ui.py
Browse files
ui.py
CHANGED
|
@@ -98,6 +98,7 @@ def APP():
|
|
| 98 |
|
| 99 |
tab_map = {
|
| 100 |
0: "BIO ENGINEERING LAB @newMATTER",
|
|
|
|
| 101 |
}
|
| 102 |
|
| 103 |
tab_selection = st.pills(
|
|
@@ -229,10 +230,10 @@ def APP():
|
|
| 229 |
time.sleep(0.5) # Much shorter sleep between retries
|
| 230 |
|
| 231 |
# Show completion animation
|
| 232 |
-
if fetch_ops_response and fetch_ops_response.get("exp"):
|
| 233 |
-
st.
|
| 234 |
-
else:
|
| 235 |
-
st.info("⏳ Operations are still being processed...")
|
| 236 |
|
| 237 |
# FIXED: Better error handling with animations
|
| 238 |
if fetch_ops_response:
|
|
@@ -295,12 +296,15 @@ def APP():
|
|
| 295 |
{"role": "assistant", "content": str(plan_response)}
|
| 296 |
)
|
| 297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
if st.user.is_logged_in:
|
| 299 |
if st.button("🚪 Logout"):
|
| 300 |
st.logout()
|
| 301 |
st.rerun()
|
| 302 |
-
|
| 303 |
-
st.markdown(f"## {st.user.email}")
|
| 304 |
SHOWTABS()
|
| 305 |
else:
|
| 306 |
st.info("Please log in to access the Bio Lab")
|
|
|
|
| 98 |
|
| 99 |
tab_map = {
|
| 100 |
0: "BIO ENGINEERING LAB @newMATTER",
|
| 101 |
+
1:"BIO ENGINEERING LAB 2 @newMATTER"
|
| 102 |
}
|
| 103 |
|
| 104 |
tab_selection = st.pills(
|
|
|
|
| 230 |
time.sleep(0.5) # Much shorter sleep between retries
|
| 231 |
|
| 232 |
# Show completion animation
|
| 233 |
+
#if fetch_ops_response and fetch_ops_response.get("exp"):
|
| 234 |
+
#st.write("")
|
| 235 |
+
#else:
|
| 236 |
+
#st.info("⏳ Operations are still being processed...")
|
| 237 |
|
| 238 |
# FIXED: Better error handling with animations
|
| 239 |
if fetch_ops_response:
|
|
|
|
| 296 |
{"role": "assistant", "content": str(plan_response)}
|
| 297 |
)
|
| 298 |
|
| 299 |
+
|
| 300 |
+
elif tab_selection == 1:
|
| 301 |
+
st.markdown("coming soon")
|
| 302 |
+
|
| 303 |
if st.user.is_logged_in:
|
| 304 |
if st.button("🚪 Logout"):
|
| 305 |
st.logout()
|
| 306 |
st.rerun()
|
| 307 |
+
#st.markdown(f"## {st.user.email}")
|
|
|
|
| 308 |
SHOWTABS()
|
| 309 |
else:
|
| 310 |
st.info("Please log in to access the Bio Lab")
|