(no commit message)

This commit is contained in:
2025-10-29 17:15:27 -04:00
parent 65a89c9b01
commit 00c4f8b6bb
8 changed files with 50 additions and 19 deletions

23
main.py Normal file
View File

@@ -0,0 +1,23 @@
from modaic import PrecompiledAgent, PrecompiledConfig
class PromptToSignatureConfig(PrecompiledConfig):
lm: str = "gpt-4o"
max_tokens: int = 1024
class PromptToSignatureAgent(PrecompiledAgent):
config: PromptToSignatureConfig
def __init__(self, config: PromptToSignatureConfig, **kwargs):
super().__init__(config, **kwargs)
def forward(self, prompt: str) -> str:
return "hello world"
agent = PromptToSignatureAgent(PromptToSignatureConfig())
def main():
agent.push_to_hub("fadeleke/prompt-to-signature", with_code=True)
if __name__ == "__main__":
main()