From a7f64866b3820de6179dbcbace4883794e8032f5 Mon Sep 17 00:00:00 2001 From: Noah Solomon Date: Wed, 20 Nov 2024 20:32:31 -0500 Subject: [PATCH] formatting --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ad47999..b981c17 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,19 @@ NEETS_API_KEY=YOUR NEETS API KEY HERE ` 2. go into generate (`cd generate`) and run `docker build -t brainrot .`. This will take 10-15 minutes, as there are a lot of dependencies. -3. now, once this docker image is successfully built, we need to run it as a container. Run this command `docker run -d --name brainrotjs brainrotjs \ +3. now, once this docker image is successfully built, we need to run it as a container. Run this command: + +```bash +docker run -d --name brainrotjs brainrotjs \ -w 1 \ -b 0.0.0.0:5000 \ --access-logfile access.log \ --error-logfile error.log \ --chdir /app/brainrot \ transcribe:app \ ---timeout 120` +--timeout 120 +``` + 4. now run `docker exec -it brainrot /bin/bash`, followed by `node localBuild.mjs` 5. when the video has been generated, exit out of the container (`cntl+d` in terminal window), and then run `docker cp brainrot:/app/brainrot/out/video.mp4 ./video.mp4`. This will output where the video is located on your computer (e.g. `Successfully copied 97.8MB to /home/noahsolomon/brainrotjs/generate/video.mp4`). Voila you just generated brainrot. 6. change the variable values at the top in localBuild.mjs to change what vidoe is generated. The video generation process can take 10-20 minutes so be patient! we are so back fam @@ -42,10 +47,6 @@ transcribe:app \ - https://console.groq.com/keys -

Video explaining how to run 👇 locally

- -[![Thumbnail](https://github.com/noahgsolomon/brainrot.js/assets/111200060/edab5792-6c04-4355-8e89-dc61ad16cbdf)](https://www.youtube.com/watch?v=-Ff0xG1eNjw) - #### assets to download I have removed assets for download except MINECRAFT-0.mp4 (in generate/public/background/). If you want your own GTA / Minecraft / etc. bottom half video just find some on youtube. and add the videos to generate/public/background/ folder.