Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /pavanad_beegen /beegen /commands /utils /chat.py
| import os | |
| import sys | |
| from streamlit.web import cli as stcli | |
| from beegen.commands.base import BaseCommand | |
| class UtilsChatCommand(BaseCommand): | |
| name = "utils chat" | |
| description = "BeeGen's chat interface for any language model" | |
| def handle(self) -> int: | |
| self.line("") | |
| current_dir = os.path.dirname(os.path.abspath(__file__)) | |
| two_levels_up = os.path.dirname(os.path.dirname(current_dir)) | |
| app_path = os.path.join(two_levels_up, "services", "chat", "app.py") | |
| sys.argv = [ | |
| "streamlit", | |
| "run", | |
| app_path, | |
| "--theme.base", | |
| "dark", | |
| "--theme.primaryColor", | |
| "#dca927", | |
| "--theme.backgroundColor", | |
| "#080808", | |
| "--theme.secondaryBackgroundColor", | |
| "#161616", | |
| "--client.showSidebarNavigation", | |
| "false", | |
| ] | |
| sys.exit(stcli.main()) | |
Xet Storage Details
- Size:
- 938 Bytes
- Xet hash:
- 4a948cea3a024f0aebdbb1a5ee53fde75f481e0f517af622f20b1ac765134f48
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.