Skip to content

Commit

Permalink
extensions removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo committed May 25, 2024
1 parent 423a140 commit 2d0c4e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 288 deletions.
6 changes: 4 additions & 2 deletions lollms/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,12 @@ def __init__(
self.transcribed_files = deque()
self.buffer_lock = threading.Condition()
self.transcribed_lock = threading.Condition()
self.lc.ShowBlockingMessage("Loading whisper...")
ASCIIColors.info("Loading whisper...", end="",flush=True)

self.model = model
self.whisper = whisper.load_model(model)
self.lc.HideBlockingMessage()
ASCIIColors.success("OK")

def get_date_time(self):
Expand Down Expand Up @@ -246,7 +248,7 @@ def callback(self, indata, frames, time, status):
if self.current_silence_duration > self.longest_silence_duration:
self.longest_silence_duration = self.current_silence_duration

if self.silence_counter > (self.rate / frames * self.silence_duration):
if self.silence_counter > (self.rate / frames) * self.silence_duration:
ASCIIColors.red("Silence counter reached threshold")
trimmed_frames = self._trim_silence(self.frames)
sound_percentage = self._calculate_sound_percentage(trimmed_frames)
Expand All @@ -260,7 +262,7 @@ def callback(self, indata, frames, time, status):
else:
ASCIIColors.red(f"Appending data")
ASCIIColors.yellow(f"silence_counter: {self.silence_counter}")
print(f"silence duration: {self.rate / frames * self.silence_duration}")
print(f"silence duration: {(self.rate / frames) * self.silence_duration}")
self.frames.append(indata.copy())
else:
self.frames = []
Expand Down
2 changes: 0 additions & 2 deletions lollms/server/elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def main():
from lollms.server.endpoints.lollms_binding_infos import router as lollms_binding_infos_router
from lollms.server.endpoints.lollms_models_infos import router as lollms_models_infos_router
from lollms.server.endpoints.lollms_personalities_infos import router as lollms_personalities_infos_router
from lollms.server.endpoints.lollms_extensions_infos import router as lollms_extensions_infos_router

from lollms.server.endpoints.lollms_configuration_infos import router as lollms_configuration_infos_router

Expand All @@ -69,7 +68,6 @@ def main():
app.include_router(lollms_binding_infos_router)
app.include_router(lollms_models_infos_router)
app.include_router(lollms_personalities_infos_router)
app.include_router(lollms_extensions_infos_router)


app.include_router(lollms_generator_router)
Expand Down
284 changes: 0 additions & 284 deletions lollms/server/endpoints/lollms_extensions_infos.py

This file was deleted.

0 comments on commit 2d0c4e7

Please # to comment.