Spaces:
Running
Running
Update ui.py
Browse files
ui.py
CHANGED
@@ -124,6 +124,25 @@ def APP():
|
|
124 |
placeholder="Type your query here."
|
125 |
)
|
126 |
execute_button=st.form_submit_button("execute")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
if execute_button:
|
129 |
|
|
|
124 |
placeholder="Type your query here."
|
125 |
)
|
126 |
execute_button=st.form_submit_button("execute")
|
127 |
+
|
128 |
+
|
129 |
+
|
130 |
+
|
131 |
+
"""----------------experimental--------------------"""
|
132 |
+
@st.cache_data(ttl=10)
|
133 |
+
def fetch_ops():
|
134 |
+
response=requests.get(f"https://thexforce-combat-backend.hf.space/user/operations/{st.user.email}",
|
135 |
+
headers={
|
136 |
+
|
137 |
+
"Content-Type":"application/json",
|
138 |
+
"Authorization":f"Bearer {tok}"
|
139 |
+
})
|
140 |
+
useroperations_json=response.json()
|
141 |
+
return useroperations_json
|
142 |
+
|
143 |
+
fetch_ops()
|
144 |
+
"""---------------experimental---------------------"""
|
145 |
+
|
146 |
|
147 |
if execute_button:
|
148 |
|