harrolee / drive-gooder Goto Github PK
View Code? Open in Web Editor NEWdon't read and drive
License: Other
don't read and drive
License: Other
Use Coqui's XTTS model on HF.
Use Transformers.pipeline.
This will radically reduce the size of your container.
If you drop Coqui.TTS as a dependency, you won't need to give appUser a password.
You only did that so that you could login as appUser and have the $HOME env var change.
(Coqui.TTS used $HOME)
In addtion, appUser may not need root permissions. I think that was a Coqui.TTS thing too? Unsure.
...without rebooting the app
These env vars are defined at app start.
summarize_model = environ["SUMMARIZE_MODEL"].lower()
speech_to_text_model = environ["SPEECH_TO_TEXT_MODEL"].lower()
text_to_speech_model = environ["TEXT_TO_SPEECH_MODEL"].lower()
question_model = environ["QUESTION_MODEL"].lower()
The OpenAI api changed. Use the 3.5-turbo chat model.
Try using a newer version of langchain too. The current version doesn't know that OpenAI changed.
Do you need langchain? Atm, you're not using an agentic workflow.
When running outside of container, in macos, generates this path: /Users/lee/projects/drive-gooder/api/backend/llm/../../output/oj5rhjoyf0bk7r5d.wav
I suspect ../../
works in macos but not linux. The docker container uses debian (from the python:3.10-slim-bullseye docker image)
Maybe the issue is the path generated by _build_temporary_file_path()?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.