Spaces:
Runtime error
Runtime error
Commit
·
c18c204
1
Parent(s):
6589f0e
commit
Browse files
app.py
CHANGED
@@ -154,8 +154,6 @@ def encrypt_encoded_quantize(encodings):
|
|
154 |
fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{eval_key}")
|
155 |
fhe_api.load()
|
156 |
|
157 |
-
encodings = encodings[0]
|
158 |
-
|
159 |
# Ensure encodings is a proper NumPy array
|
160 |
if isinstance(encodings, str):
|
161 |
encodings = np.fromstring(encodings.strip("[]"), sep=',', dtype=np.float32)
|
|
|
154 |
fhe_api = FHEModelClient(f"fhe_model", f".fhe_keys/{eval_key}")
|
155 |
fhe_api.load()
|
156 |
|
|
|
|
|
157 |
# Ensure encodings is a proper NumPy array
|
158 |
if isinstance(encodings, str):
|
159 |
encodings = np.fromstring(encodings.strip("[]"), sep=',', dtype=np.float32)
|