Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements ~ Optimize images, Enhance Speech2Text Plugin, Support Custom CSS in Chainlit #284

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Binary file modified .asset/taskweaver_arch.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion playground/UI/.chainlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ hide_cot = false

# Specify a CSS file that can be used to customize the user interface.
# The CSS file can be served from the public directory or via an external link.
custom_css = "/public/style_v1.css"
custom_css = "path/to/your/custom.css"

# Override default MUI light theme. (Check theme.ts)
[UI.theme.light]
Expand Down
Binary file modified playground/UI/public/logo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified playground/UI/public/logo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions project/plugins/speech2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
class Speech2Text(Plugin):
model = None

def _init(self) -> None:
self.model = whisper.load_model("base")
def _init(self, model_size: str = "base") -> None:
self.model = whisper.load_model(model_size)
self.device = self.model.device

def __call__(self, audio_path):
if self.model is None:
self._init()
def __call__(self, audio_path, model_size: str = "base"):
if self.model is None or self.model_size != model_size:
self._init(model_size)
self.model_size = model_size
# load audio and pad/trim it to fit 30 seconds
audio = whisper.load_audio(audio_path)
audio = whisper.pad_or_trim(audio)
Expand Down
Binary file modified website/static/img/APS.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/code_verification.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/data.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/domains.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/experience.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/logo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/plugins.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/ui_screenshot_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/ui_screenshot_2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.