fixed issue with scrolling after button click
Browse files
app.py
CHANGED
|
@@ -175,7 +175,6 @@ def keygen():
|
|
| 175 |
return [list(evaluation_key)[:ENCRYPTED_DATA_BROWSER_LIMIT], user_id]
|
| 176 |
|
| 177 |
|
| 178 |
-
@st.cache_data
|
| 179 |
def encode_quantize_encrypt(text, user_id):
|
| 180 |
task = st.session_state["task"]
|
| 181 |
fhe_api = FHEModelClient(f"deployment/deployment_{task}", f".fhe_keys/{user_id}")
|
|
@@ -390,7 +389,6 @@ def encrpyt_data_util():
|
|
| 390 |
st.session_state["encrypt"] = True
|
| 391 |
|
| 392 |
|
| 393 |
-
@st.cache_data
|
| 394 |
def mol_to_img(mol):
|
| 395 |
mol = Chem.MolFromSmiles(mol)
|
| 396 |
mol = AllChem.RemoveHs(mol)
|
|
|
|
| 175 |
return [list(evaluation_key)[:ENCRYPTED_DATA_BROWSER_LIMIT], user_id]
|
| 176 |
|
| 177 |
|
|
|
|
| 178 |
def encode_quantize_encrypt(text, user_id):
|
| 179 |
task = st.session_state["task"]
|
| 180 |
fhe_api = FHEModelClient(f"deployment/deployment_{task}", f".fhe_keys/{user_id}")
|
|
|
|
| 389 |
st.session_state["encrypt"] = True
|
| 390 |
|
| 391 |
|
|
|
|
| 392 |
def mol_to_img(mol):
|
| 393 |
mol = Chem.MolFromSmiles(mol)
|
| 394 |
mol = AllChem.RemoveHs(mol)
|
style.css
CHANGED
|
@@ -2,7 +2,16 @@ html,
|
|
| 2 |
body,
|
| 3 |
[class*="css"] {
|
| 4 |
font-family: 'Roboto', sans-serif;
|
| 5 |
-
font-size:
|
| 6 |
font-weight: 500;
|
| 7 |
color: #091747;
|
| 8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
body,
|
| 3 |
[class*="css"] {
|
| 4 |
font-family: 'Roboto', sans-serif;
|
| 5 |
+
font-size: 20px; /* Default font size for larger screens */
|
| 6 |
font-weight: 500;
|
| 7 |
color: #091747;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
/* Media query for small screens */
|
| 11 |
+
@media (max-width: 767px) {
|
| 12 |
+
html,
|
| 13 |
+
body,
|
| 14 |
+
[class*="css"] {
|
| 15 |
+
font-size: 28px; /* Larger font size for small screens */
|
| 16 |
+
}
|
| 17 |
+
}
|