File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,7 @@ jobs:
346
346
volumes :
347
347
- /mount:/mount
348
348
- ${{ github.workspace }}:${{ github.workspace }}
349
+ options : -e HF_TOKEN
349
350
350
351
env :
351
352
INSTALL_DIR : ${{ github.workspace }}/install
@@ -414,6 +415,7 @@ jobs:
414
415
volumes :
415
416
- /mount:/mount
416
417
- ${{ github.workspace }}:${{ github.workspace }}
418
+ options : -e HF_TOKEN
417
419
418
420
env :
419
421
INSTALL_DIR : ${{ github.workspace }}/ov
@@ -468,6 +470,7 @@ jobs:
468
470
volumes :
469
471
- /mount:/mount
470
472
- ${{ github.workspace }}:${{ github.workspace }}
473
+ options : -e HF_TOKEN
471
474
472
475
env :
473
476
OV_INSTALL_DIR : ${{ github.workspace }}/ov
Original file line number Diff line number Diff line change 1
- name : macOS (13, Python 3.10 )
1
+ name : macOS (13, Python 3.11 )
2
2
on :
3
3
workflow_dispatch :
4
4
pull_request :
@@ -17,7 +17,7 @@ concurrency:
17
17
18
18
env :
19
19
MACOSX_DEPLOYMENT_TARGET : ' 11.0'
20
- PYTHON_VERSION : ' 3.10 '
20
+ PYTHON_VERSION : ' 3.11 '
21
21
TARGET_BRANCH : ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}
22
22
CCACHE_MAXSIZE : 500Mi
23
23
55
55
matrix :
56
56
build-type : [Release]
57
57
needs : [ openvino_download ]
58
- timeout-minutes : 20
58
+ timeout-minutes : 30
59
59
defaults :
60
60
run :
61
61
shell : bash
@@ -133,7 +133,7 @@ jobs:
133
133
genai_build_wheel :
134
134
name : Build Wheel
135
135
needs : [ openvino_download ]
136
- timeout-minutes : 20
136
+ timeout-minutes : 30
137
137
defaults :
138
138
run :
139
139
shell : bash
Original file line number Diff line number Diff line change @@ -68,7 +68,12 @@ def get_image_by_link(link):
68
68
from openvino import Tensor
69
69
import numpy as np
70
70
71
- image = Image .open (requests .get (link , stream = True ).raw )
71
+ try :
72
+ response = requests .get (link , stream = True )
73
+ response .raise_for_status ()
74
+ image = Image .open (response .raw )
75
+ except (requests .RequestException , Image .UnidentifiedImageError ) as e :
76
+ raise ValueError (f"Failed to load image from { link } : { e } " )
72
77
if image .mode != 'RGB' :
73
78
image = image .convert ('RGB' )
74
79
image_data = np .array (image )
You can’t perform that action at this time.
0 commit comments