Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- src/ui/streamlit_app.py +26 -3
src/ui/streamlit_app.py
CHANGED
|
@@ -33,7 +33,30 @@ st.set_page_config(
|
|
| 33 |
)
|
| 34 |
|
| 35 |
# =======================
|
| 36 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
# =======================
|
| 38 |
st.markdown("""
|
| 39 |
<style>
|
|
@@ -181,7 +204,7 @@ with st.sidebar:
|
|
| 181 |
API_GATEWAY_URL = url_input
|
| 182 |
|
| 183 |
# =======================
|
| 184 |
-
# MAIN HEADER
|
| 185 |
# =======================
|
| 186 |
col1, col2, col3 = st.columns([1, 6, 1])
|
| 187 |
with col2:
|
|
@@ -313,7 +336,7 @@ if run_eval:
|
|
| 313 |
st.success("Evaluation Complete!")
|
| 314 |
|
| 315 |
# -----------------------------
|
| 316 |
-
# Summary Metrics
|
| 317 |
# -----------------------------
|
| 318 |
st.markdown("## Evaluation Summary")
|
| 319 |
|
|
|
|
| 33 |
)
|
| 34 |
|
| 35 |
# =======================
|
| 36 |
+
# Disable Browser Autocomplete
|
| 37 |
+
# =======================
|
| 38 |
+
st.markdown("""
|
| 39 |
+
<style>
|
| 40 |
+
input[type=text] {
|
| 41 |
+
autocomplete: off !important;
|
| 42 |
+
}
|
| 43 |
+
</style>
|
| 44 |
+
|
| 45 |
+
<script>
|
| 46 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 47 |
+
const inputs = window.parent.document.querySelectorAll('input[type="text"]');
|
| 48 |
+
inputs.forEach(inp => {
|
| 49 |
+
inp.setAttribute('autocomplete', 'off');
|
| 50 |
+
inp.setAttribute('autocorrect', 'off');
|
| 51 |
+
inp.setAttribute('autocapitalize', 'off');
|
| 52 |
+
inp.setAttribute('spellcheck', 'false');
|
| 53 |
+
});
|
| 54 |
+
});
|
| 55 |
+
</script>
|
| 56 |
+
""", unsafe_allow_html=True)
|
| 57 |
+
|
| 58 |
+
# =======================
|
| 59 |
+
# UI STYLING
|
| 60 |
# =======================
|
| 61 |
st.markdown("""
|
| 62 |
<style>
|
|
|
|
| 204 |
API_GATEWAY_URL = url_input
|
| 205 |
|
| 206 |
# =======================
|
| 207 |
+
# MAIN HEADER
|
| 208 |
# =======================
|
| 209 |
col1, col2, col3 = st.columns([1, 6, 1])
|
| 210 |
with col2:
|
|
|
|
| 336 |
st.success("Evaluation Complete!")
|
| 337 |
|
| 338 |
# -----------------------------
|
| 339 |
+
# Summary Metrics
|
| 340 |
# -----------------------------
|
| 341 |
st.markdown("## Evaluation Summary")
|
| 342 |
|