From be172fa8b709cb6bd68af359680987cad0227d32 Mon Sep 17 00:00:00 2001 From: Farouk Adeleke Date: Sat, 8 Nov 2025 17:47:16 -0500 Subject: [PATCH] Do not call forward directly --- main.py | 2 +- src/index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3e50d64..d725ea7 100644 --- a/main.py +++ b/main.py @@ -3,7 +3,7 @@ from src import CodexAgent, CodexAgentConfig codex_agent = CodexAgent(CodexAgentConfig()) def main(): - codex_agent.push_to_hub("darinkishore/codex-agent", with_code=True) + codex_agent.push_to_hub("darinkishore/codex-agent", with_code=True, commit_message="Do not call forward directly") if __name__ == "__main__": main() \ No newline at end of file diff --git a/src/index.py b/src/index.py index 9a78784..237002f 100644 --- a/src/index.py +++ b/src/index.py @@ -34,4 +34,4 @@ class CodexAgent(PrecompiledAgent): ) def forward(self, **kwargs) -> Prediction: - return self.codex_module.forward(**kwargs) \ No newline at end of file + return self.codex_module(**kwargs) \ No newline at end of file