Skip to content
Snippets Groups Projects
Commit 30192394 authored by Mahyar Vahabi's avatar Mahyar Vahabi
Browse files

removed messages

parent b616e264
No related branches found
No related tags found
No related merge requests found
......@@ -34,19 +34,6 @@ def retrieve(key):
except ValueError:
raise ValueError(f"Received invalid hex data: {raw_output}")
'''
def retrieve(key):
"""Retrieves a value securely from ORAM."""
result = subprocess.run(["./path_oram", "retrieve", str(key)], capture_output=True, text=True, check=True)
tensor_bytes = bytes.fromhex(result.stdout.strip())
return pickle.loads(tensor_bytes)
def shuffle():
"""Calls the ORAM executable to shuffle access patterns."""
subprocess.run(["./path_oram", "shuffle"], check=True)
'''
def generate_response(query, api_key):
"""Generate a response using GPT-4o-mini."""
chat_model = ChatOpenAI(model="gpt-4o-mini", openai_api_key=api_key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment