Skip to content

Commit b8a9e8f

Browse files
committed
Tag the version of opencv-python (#955)
1 parent c677403 commit b8a9e8f

20 files changed

Lines changed: 3818 additions & 4282 deletions

File tree

usecases/ai/manufacturing-hmi-llm-genai/app/compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# SPDX-License-Identifier: Apache-2.0
33
services:
44
mongodb:
5-
image: mongo:latest
5+
image: mongo:8.2.5
66
hostname: mongodb
7+
user: "999:999"
78
networks:
89
- app-network
910
ports:
@@ -12,6 +13,13 @@ services:
1213
- database:/data/db
1314
- /etc/timezone:/etc/timezone:ro
1415
- /etc/localtime:/etc/localtime:ro
16+
read_only: true
17+
tmpfs:
18+
- /tmp
19+
security_opt:
20+
- no-new-privileges:true
21+
cap_drop:
22+
- ALL
1523

1624
networks:
1725
app-network:

usecases/ai/manufacturing-hmi-llm-genai/app/utils/RoboticArm.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -153,38 +153,6 @@ def set_location(self) -> None:
153153
self.mc.focus_servo(i)
154154
time.sleep(self.sleep_time)
155155

156-
def trigger_suction_control(self):
157-
"""
158-
Trigger the suction control API to move the robotic arm.
159-
"""
160-
try:
161-
# Send 'state' as a query parameter
162-
response = requests.post(f"http://{self.ip_address}:{self.ip_port}/control_suction", params={"state": 0})
163-
if response.status_code == 200:
164-
print("Suction control API triggered successfully:", response.json())
165-
else:
166-
print("Failed to trigger suction control API:", response.status_code, response.text)
167-
except requests.RequestException as e:
168-
print("Error while triggering suction control API:", e)
169-
170-
171-
def trigger_move(self, angles):
172-
"""
173-
Trigger the move API to control the robotic arm.
174-
"""
175-
try:
176-
# Send 'angles' as JSON in the request body
177-
response = requests.post(
178-
f"http://{self.ip_address}:{self.ip_port}/move",
179-
json={"angles": [angles]}
180-
)
181-
if response.status_code == 200:
182-
print("Suction control API triggered successfully:", response.json())
183-
else:
184-
print("Failed to trigger suction control API:", response.status_code, response.text)
185-
except requests.RequestException as e:
186-
print("Error while triggering suction control API:", e)
187-
188156

189157
if __name__ == '__main__':
190158
robot = RoboticArm()

usecases/ai/rag-toolkit/backend/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RUN python3 -m pip install fastapi[all] \
6565
numpy==1.26.4 \
6666
openai==1.56.2 \
6767
pyyaml==6.0.1 \
68-
pypdf==6.0.0 \
68+
pypdf==6.7.5 \
6969
langchain==0.3.27 \
7070
langchain-chroma==0.2.5 \
7171
langchain-community===0.3.27 \
@@ -75,10 +75,10 @@ RUN python3 -m pip install fastapi[all] \
7575
cached_path==1.6.3 \
7676
python-magic
7777
RUN python3 -m pip install --extra-index-url https://download.pytorch.org/whl/cpu \
78-
torch==2.8.0 \
79-
torchaudio==2.8.0 \
80-
openvino==2025.3.0 \
81-
optimum-intel[openvino,nncf]==1.26.1
78+
torch==2.9.1 \
79+
torchaudio==2.9.1 \
80+
openvino==2026.0 \
81+
optimum-intel[openvino,nncf]==1.27.0
8282

8383
COPY --chown=openvino:openvino backend .
8484

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/types/routes.d.ts";
34

45
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)