If you have uv installed (and you should!), you can install llm globally in a uv-managed tool environment with:
uv tool install llmIf you want to use models other than OpenAI models, you'll need some extensions:
| override BIN := test | |
| override SRC := test.c msg.c | |
| override OBJ := $(SRC:%=%.o) | |
| override DEP := $(SRC:%=%.d) | |
| CFLAGS := -O2 -march=native -mtune=native -flto | |
| $(BIN): $(OBJ) | |
| $(CC) $(CFLAGS) -o $@ $^ |
| from uuid import uuid4 | |
| from nicegui import ui | |
| messages = [] | |
| @ui.refreshable | |
| def chat_messages(own_id): | |
| for user_id, avatar, text in messages: | |
| ui.chat_message(avatar=avatar, text=text, sent=user_id==own_id) |
| #ifndef NANOVG_SOKOL_H | |
| #define NANOVG_SOKOL_H | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| struct sg_image; | |
| // Create flags |
Main problem of showing progress bar in Blender UI is that while a script is running the UI is frozen. So the simplest (?) solution is to break execution whenever the progress status should be updated. For this you can use either timers or modal operators. The last one can't be switched on during all time of Blender execution and has some starting costs.
import bpy
from functools import partialThese steps have been tested on Windows 10 with WSL2 running Ubuntu.
First install the dependencies:
apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-devThere are more than we need, but also include GLut and Glu libraries to link aginst during compilation for application development (these can be removed if that functionality is not required).
In PIX, Select Target Process => Launch Win32 and set the following 2 entries according to where Canary / Chrome is installed:
Then click on "Launch".
Important: you should close all your Canary / Chrome windows/processes before clicking on the "Launch" button!
| import bpy | |
| import bmesh | |
| obj = bpy.context.active_object | |
| frames = range(0,10) | |
| # get the object's evaluated dependency graph: | |
| depgraph = bpy.context.evaluated_depsgraph_get() | |
| # iterate animation frames: | |
| for f in frames: | |
| bpy.context.scene.frame_set(f) | |
| # define new bmesh object: |
| # This is a basic workflow to help you get started with Actions | |
| # workflow - цепочка действий | |
| # Имя процесса Билдится на всех типах 📦 🐍 | |
| name: CMake Build Matrix | |
| # Controls when the action will run. Triggers the workflow on push | |
| on: | |
| push: | |
| pull_request: | |
| release: |
| def get_lambda_event_source(self, event: dict): | |
| if 'pathParameters' in event and 'proxy' in event['pathParameters']: | |
| return 'api_gateway_aws_proxy' | |
| if 'requestContext' in event and 'resourceId' in event['requestContext']: | |
| return 'api_gateway_http' | |
| elif 'Records' in event and len(event['Records']) > 0 and 'eventSource' in event['Records'][0] and event['Records'][0]['eventSource'] == 'aws:s3': | |
| return 's3' | |
| elif 'Records' in event and len(event['Records']) > 0 and 'EventSource' in event['Records'][0] and event['Records'][0]['EventSource'] == 'aws:sns': | |
| return 'sns' |