BasedHardware / omi

AI wearables
https://omi.me
MIT License
3.63k stars 453 forks source link

Fix time validate on segment ends #796

Closed beastoin closed 1 month ago

beastoin commented 1 month ago

Issue: https://github.com/BasedHardware/omi/issues/795

Summary by Entelligence.AI

github-actions[bot] commented 1 month ago

Image description Entelligence.AI

Walkthrough

The change in the transcribe.py file is a minor but crucial adjustment to improve the logic flow. The assignment of segment_end has been moved before the time validation check in the _try_flush_new_memory function, ensuring that the correct segment end time is used during validation.

Changes

File Summary
backend/routers/transcribe.py Updated the position of the segment_end assignment to before the time validation check in the _try_flush_new_memory function.

🎉🤖

In the realm of code, every line's a quest,

A tiny change can make it simply the best.

With logic refined, and errors declined,

Our bot's diligent review passed the test! 🚀


Uplevel your code reviews with Entelligence.AI Pro ### Entelligence.AI Pro If you like this project, please support us by purchasing the [Pro version](https://Entelligence.AI.ai). The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, Entelligence.AI Pro is free for open source projects.