Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Nov 27, 2024
1 parent a242678 commit 2c7a1d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions check_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def kernel_check():
OPENVINO_IMPORT = False



print("System information:")
print(f"Python executable: {PYTHON_EXECUTABLE}")
print(f"Pip version: {PIP_VERSION}")
Expand Down Expand Up @@ -177,9 +176,7 @@ def kernel_check():

if not DEVTOOLS_INSTALLED:
print()
print(
"OpenVINO development tools are not installed in this Python environment. \n" "Please follow the instructions in the README to install `openvino`\n"
)
print("OpenVINO development tools are not installed in this Python environment. \n" "Please follow the instructions in the README to install `openvino`\n")

if not NO_BROKEN_REQUIREMENTS:
print()
Expand Down
2 changes: 1 addition & 1 deletion notebooks/janus-multimodal-generation/ov_janus_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def convert_janus_model(model_id, output_dir, quantization_config):
processor: VLChatProcessor = VLChatProcessor.from_pretrained(model_id)
config = AutoConfig.from_pretrained(model_id, trust_remote_code=True)
language_config = config.language_config
language_config._attn_implementation = 'sdpa'
language_config._attn_implementation = "sdpa"
vl_gpt: MultiModalityCausalLM = AutoModelForCausalLM.from_pretrained(model_id, language_config=language_config, trust_remote_code=True)
vl_gpt = vl_gpt.eval()
vl_gpt.config.save_pretrained(output_dir)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@
"metadata": {},
"outputs": [],
"source": [
"#VIDEO_SOURCE = 0 #for webcam\n",
"# VIDEO_SOURCE = 0 #for webcam\n",
"VIDEO_SOURCE = \"https://storage.openvinotoolkit.org/repositories/openvino_notebooks/data/data/video/people.mp4\""
]
},
Expand Down

0 comments on commit 2c7a1d7

Please sign in to comment.