Skip to content

Commit 8409e06

Browse files
authored
Merge pull request #315 from open-edge-platform/update-branch
Merge pull request #149 from intel-innersource/93-bug-kokoro-worker-fallback-to-espeak-ng-in-ubuntu-vm-and-xeon (#843)
2 parents b224876 + 0d58d72 commit 8409e06

File tree

13 files changed

+5055
-104
lines changed

13 files changed

+5055
-104
lines changed

usecases/ai/edge-ai-demo-studio/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Once started, access the web UI at [http://localhost:8080](http://localhost:8080
7474
## Project Structure
7575

7676
```
77-
applications.ai.tools.edge-ai-studio/
77+
applications.ai.tools.edge-ai-demo-studio/
7878
├── electron/ # Electron app
7979
├── frontend/ # Next.js web frontend
8080
├── workers/ # Python/AI backend services

usecases/ai/edge-ai-demo-studio/electron/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Output is in `../out/`.
8080

8181
The build configuration is in `package.json` under the `build` key. Key settings:
8282

83-
- **appId**: `com.intel.edge-ai-studio`
83+
- **appId**: `com.intel.edge-ai-demo-studio`
8484
- **productName**: `EdgeAIDemoStudio`
8585
- **extraResources**: Copies `frontend`, `workers`, and `scripts` from `../build/`
8686
- **electronFuses**: Same security settings as Forge version

usecases/ai/edge-ai-demo-studio/electron/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

usecases/ai/edge-ai-demo-studio/electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
}
6060
],
6161
"category": "Development",
62-
"executableName": "edge-ai-studio"
62+
"executableName": "edge-ai-demo-studio"
6363
},
6464
"win": {
6565
"target": [

usecases/ai/edge-ai-demo-studio/frontend/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
[project]
5+
name = "embedding-worker"
6+
version = "0.1.0"
7+
description = "Embedding worker for Edge AI Studio"
8+
requires-python = ">=3.11"
9+
dependencies = [
10+
# OVMS
11+
"optimum-intel @ git+https://github.com/huggingface/optimum-intel.git",
12+
"openvino-tokenizers==2025.3.0.0rc1",
13+
"openvino==2025.3.0rc1",
14+
"nncf>=2.11.0",
15+
"sentencepiece==0.2.0",
16+
"transformers<4.54",
17+
"einops",
18+
"timm==1.0.15",
19+
"diffusers==0.33.1",
20+
# FastAPI and Web Framework
21+
"fastapi[standard]>=0.120.1",
22+
# ML and AI Libraries
23+
"sentence-transformers==5.0.0",
24+
"openai==1.93.1",
25+
"cohere==5.15.0",
26+
"numpy==2.1.0",
27+
# Vector Database and Search
28+
"faiss-cpu==1.11.0",
29+
# LangChain Ecosystem
30+
"langchain==0.3.26",
31+
"langchain-openai==0.3.27",
32+
"langchain-cohere==0.4.4",
33+
"langchain-community==0.3.27",
34+
"langchainhub==0.1.21",
35+
# Document Processing
36+
"unstructured==0.18.3",
37+
"pdfminer.six==20251107",
38+
# Database and Modeling
39+
"sqlmodel>=0.0.24",
40+
]
41+
42+
[tool.uv.sources]
43+
openvino = { index = "openvino-pre-release" }
44+
openvino-tokenizers = { index = "openvino-pre-release" }
45+
46+
[[tool.uv.index]]
47+
name = "openvino-nightly"
48+
url = "https://storage.openvinotoolkit.org/simple/wheels/nightly"
49+
explicit = true
50+
51+
[[tool.uv.index]]
52+
name = "openvino-pre-release"
53+
url = "https://storage.openvinotoolkit.org/simple/wheels/pre-release"
54+
explicit = true

usecases/ai/edge-ai-demo-studio/workers/embedding/requirements.txt

Lines changed: 0 additions & 45 deletions
This file was deleted.

usecases/ai/edge-ai-demo-studio/workers/embedding/setup.sh

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
set -euo pipefail
66

77
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8+
VENV_DIR="$SCRIPT_DIR/.venv"
89

910
PARENT_THIRDPARTY_DIR="$SCRIPT_DIR/../thirdparty"
1011
PARENT_UV_PATH="$PARENT_THIRDPARTY_DIR/uv/uv"
@@ -34,30 +35,17 @@ check_ovms_installed() {
3435
fi
3536
}
3637

37-
# Function to install Python dependencies
38-
install_python_dependencies() {
39-
echo -e "Checking for virtual environment..."
40-
if [ -d ".venv" ]; then
41-
echo -e "Virtual environment already exists."
38+
create_venv() {
39+
if [[ -d "$VENV_DIR" ]]; then
40+
echo "Virtual environment already exists at $VENV_DIR."
4241
else
43-
echo -e "Creating virtual environment with uv..."
44-
"$UV_CMD" venv --python 3.11
45-
fi
46-
47-
echo -e "Installing Python dependencies with uv (this may take a few minutes)..."
48-
echo -e "Note: If this seems stuck, it might be resolving PyTorch dependencies..."
49-
50-
if [ -f "requirements.txt" ]; then
51-
echo -e "Installing requirements.txt dependencies..."
52-
if "$UV_CMD" pip install -r requirements.txt --verbose --pre --refresh --index-strategy unsafe-best-match; then
53-
echo -e "Python dependencies installed successfully."
54-
else
55-
echo -e "Failed to install Python dependencies."
56-
exit 1
57-
fi
58-
else
59-
echo -e "requirements.txt not found, skipping requirements installation."
42+
echo "Creating Python 3.11 virtual environment with uv ..."
43+
"$UV_CMD" venv --seed --python 3.11 "$VENV_DIR"
6044
fi
45+
# shellcheck disable=SC1091
46+
source "$VENV_DIR/bin/activate"
47+
"$UV_CMD" sync
48+
"$UV_CMD" run python -m ensurepip
6149
}
6250

6351

@@ -68,7 +56,7 @@ main() {
6856
cd "$SCRIPT_DIR"
6957
check_ovms_installed
7058
check_uv_installed
71-
install_python_dependencies
59+
create_venv
7260
echo "Setup completed successfully!"
7361
}
7462

0 commit comments

Comments
 (0)