A minimalist Docker project to generate apps on demand.
Ready to be used in a Hugging Face Space.
WARNING! This is an experimental version of the "Webapp Factory" project, and it might not work properly!
http://localhost:7860/?prompt=a%20pong%20game%20clone%20in%20HTML,%20made%20using%20the%20canvas
http://localhost:7860/?prompt=a simple html canvas game where we need to feed tadpoles controlled by an AI. The tadpoles move randomly, but when the user click inside the canvas to add some kind of food, the tadpoles will compete to eat it. Tadpole who didn't eat will die, and those who ate will reproduce.
A powerful machine is required! You need at least 24 Gb of memory!
This project relies on Python dependencies called through Pythonia.
To install those dependencies, first you should create and activate a new virtual environment for Python:
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install torch
Note: the Dockerfile will install pytorch itself
Then install the dependencies in it:
pip install -r requirements.txt
For this project we need to download the model in advance:
# go to the models directory
cd models
# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/WizardLM/WizardCoder-15B-V1.0
cd ..
Note: the Dockerfile script will do this automatically
nvm use
npm i
npm run start
npm run docker
This script is a shortcut executing the following commands:
docker build -t webapp-factory-wizardcoder-transformers .
docker run -it -p 7860:7860 webapp-factory-wizardcoder-transformers
7 commits
TypeScript
58.0%
HTML
25.6%
Dockerfile
8.7%
Python
7.8%
A minimalist Docker project to generate apps on demand.
Ready to be used in a Hugging Face Space.
WARNING! This is an experimental version of the "Webapp Factory" project, and it might not work properly!
http://localhost:7860/?prompt=a%20pong%20game%20clone%20in%20HTML,%20made%20using%20the%20canvas
http://localhost:7860/?prompt=a simple html canvas game where we need to feed tadpoles controlled by an AI. The tadpoles move randomly, but when the user click inside the canvas to add some kind of food, the tadpoles will compete to eat it. Tadpole who didn't eat will die, and those who ate will reproduce.
A powerful machine is required! You need at least 24 Gb of memory!
This project relies on Python dependencies called through Pythonia.
To install those dependencies, first you should create and activate a new virtual environment for Python:
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install torch
Note: the Dockerfile will install pytorch itself
Then install the dependencies in it:
pip install -r requirements.txt
For this project we need to download the model in advance:
# go to the models directory
cd models
# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/WizardLM/WizardCoder-15B-V1.0
cd ..
Note: the Dockerfile script will do this automatically
nvm use
npm i
npm run start
npm run docker
This script is a shortcut executing the following commands:
docker build -t webapp-factory-wizardcoder-transformers .
docker run -it -p 7860:7860 webapp-factory-wizardcoder-transformers
7 commits
TypeScript
58.0%
HTML
25.6%
Dockerfile
8.7%
Python
7.8%