Spaces:
Running
Running
Update ui.py
Browse files
ui.py
CHANGED
@@ -36,7 +36,6 @@ def APP():
|
|
36 |
|
37 |
0: "BIO ENGINEERING LAB @newMATTER",
|
38 |
1: "EXECUTED OPERATIONS @newMATTER",
|
39 |
-
2: "LAB OUTPUT @newMATTER"
|
40 |
|
41 |
}
|
42 |
|
@@ -56,11 +55,9 @@ def APP():
|
|
56 |
|
57 |
option_map = {
|
58 |
|
59 |
-
0: "
|
60 |
-
1: "@
|
61 |
-
2: "
|
62 |
-
3: "Information"
|
63 |
-
|
64 |
}
|
65 |
|
66 |
selection = st.pills(
|
@@ -113,19 +110,17 @@ def APP():
|
|
113 |
}
|
114 |
|
115 |
|
116 |
-
response=requests.post("https://thexforce-combat-backend.hf.space/
|
117 |
|
118 |
"Content-Type":"application/json",
|
119 |
"Authorization":f"Bearer {tok}"
|
120 |
})
|
121 |
|
122 |
plan_response=response.json()
|
123 |
-
|
124 |
|
125 |
|
126 |
-
|
127 |
-
else:
|
128 |
-
st.warning(">>>Error")
|
129 |
|
130 |
#else:
|
131 |
# st.error("Please fill in both username and project name before submitting")
|
@@ -140,11 +135,6 @@ def APP():
|
|
140 |
if selection ==2:
|
141 |
st.markdown("<p style='color:white;background-color:orange;font-weight:bold'>Operation Details </p>",unsafe_allow_html=True)
|
142 |
|
143 |
-
if selection==3:
|
144 |
-
st.markdown("<p style='color:white;background-color:orange;font-weight:bold'> This system is running in trial phase </p>",unsafe_allow_html=True)
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
|
149 |
if tab_selection == 1:
|
150 |
st.markdown("### newMATTER Bio Lab Operations")
|
@@ -167,12 +157,9 @@ def APP():
|
|
167 |
st.json(userops)
|
168 |
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
if st.button("lookup"):
|
174 |
-
|
175 |
-
response=requests.get(
|
176 |
|
177 |
f"https://thexforce-combat-backend.hf.space/{st.session_state.get('username')}/{projectname}/individual/experiment",
|
178 |
headers={
|
@@ -181,9 +168,9 @@ def APP():
|
|
181 |
"Authorization":f"Bearer {tok}"
|
182 |
})
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
|
188 |
|
189 |
|
|
|
36 |
|
37 |
0: "BIO ENGINEERING LAB @newMATTER",
|
38 |
1: "EXECUTED OPERATIONS @newMATTER",
|
|
|
39 |
|
40 |
}
|
41 |
|
|
|
55 |
|
56 |
option_map = {
|
57 |
|
58 |
+
0: "@OriginAI Nanobody Engineering:",
|
59 |
+
1: "@OriginAI Ops",
|
60 |
+
2: "Information"
|
|
|
|
|
61 |
}
|
62 |
|
63 |
selection = st.pills(
|
|
|
110 |
}
|
111 |
|
112 |
|
113 |
+
response=requests.post("https://thexforce-combat-backend.hf.space/",json=payload,headers={
|
114 |
|
115 |
"Content-Type":"application/json",
|
116 |
"Authorization":f"Bearer {tok}"
|
117 |
})
|
118 |
|
119 |
plan_response=response.json()
|
120 |
+
|
121 |
|
122 |
|
123 |
+
st.markdown(f"## {plan_response}")
|
|
|
|
|
124 |
|
125 |
#else:
|
126 |
# st.error("Please fill in both username and project name before submitting")
|
|
|
135 |
if selection ==2:
|
136 |
st.markdown("<p style='color:white;background-color:orange;font-weight:bold'>Operation Details </p>",unsafe_allow_html=True)
|
137 |
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
if tab_selection == 1:
|
140 |
st.markdown("### newMATTER Bio Lab Operations")
|
|
|
157 |
st.json(userops)
|
158 |
|
159 |
|
160 |
+
|
161 |
+
'''
|
162 |
+
response=requests.get(
|
|
|
|
|
|
|
163 |
|
164 |
f"https://thexforce-combat-backend.hf.space/{st.session_state.get('username')}/{projectname}/individual/experiment",
|
165 |
headers={
|
|
|
168 |
"Authorization":f"Bearer {tok}"
|
169 |
})
|
170 |
|
171 |
+
ie=response.json()
|
172 |
+
st.json(ie)
|
173 |
+
'''
|
174 |
|
175 |
|
176 |
|