Spaces:
Sleeping
Sleeping
Update core.py
Browse files
core.py
CHANGED
@@ -107,11 +107,4 @@ def create_encrypted_image(secret_data_str: str, public_key_pem: str) -> Image.I
|
|
107 |
logger.info("Data successfully embedded into carrier image.")
|
108 |
|
109 |
return stego_image
|
110 |
-
|
111 |
-
"""Reads and returns the content of endpoints.json as a string."""
|
112 |
-
try:
|
113 |
-
with open("endpoints.json", "r") as f:
|
114 |
-
return f.read()
|
115 |
-
except Exception as e:
|
116 |
-
logger.error(f"Could not read endpoints.json: {e}")
|
117 |
-
raise gr.Error("Server could not read its endpoints.json configuration file.")
|
|
|
107 |
logger.info("Data successfully embedded into carrier image.")
|
108 |
|
109 |
return stego_image
|
110 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|