mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-04-20 03:00:34 -04:00
* [SharkInference] Make SharkInference compile the entire module -- Previously SharkInference was compiling and providing run APIs for a harcoded function with function name "forward". -- This commit makes the compiling functionality generic and now any function being defined within the module can be run. -- It also creates an API to fetch all the function names defined within the compiled module. -- This commit updates both web and command-line execution of Stable Diffusion to use new API of SharkInference. Signed-off-by: Abhishek Varma <abhishek@nod-labs.com>
In order to launch SHARK-web, from the root SHARK directory, run:
Linux
IMPORTER=1 ./setup_venv.sh
source shark.venv/bin/activate
cd web
python index.py
Windows
./setup_venv.ps1
cd web
python index.py --local_tank_cache=<current_working_dir>