-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50c55b4
commit 56f4293
Showing
27 changed files
with
816 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from dataclasses import dataclass | ||
|
||
from jsonargparse import CLI | ||
|
||
from llmpeg.agent import Agent | ||
|
||
|
||
@dataclass() | ||
class Main: | ||
rational_model: str | ||
trigger_model: str | ||
speech_model_size: str | ||
hear_model_size: str | ||
|
||
def __post_init__(self): | ||
self.agent = Agent( | ||
self.rational_model, self.trigger_model, self.speech_model_size, self.hear_model_size | ||
) | ||
|
||
def run(self): | ||
# NOTE: [EDITABLE] | ||
|
||
self.agent.chat() | ||
# self.agent.summarize_search('https://news.mit.edu/2020/brain-reading-computer-code-1215') | ||
# self.agent.explain_search('https://news.mit.edu/2020/brain-reading-computer-code-1215') | ||
|
||
# ---------------- | ||
|
||
|
||
def main(): | ||
try: | ||
CLI(Main) | ||
return 0 | ||
except KeyboardInterrupt: | ||
return 0 | ||
except ValueError: | ||
return 0 | ||
|
||
|
||
if __name__ == '__main__': | ||
exit(main()) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.