broadfield-dev commited on
Commit
4210680
·
verified ·
1 Parent(s): af348d7

Update core.py

Browse files
Files changed (1) hide show
  1. core.py +1 -8
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
- def get_endpoints_json() -> str:
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
+