Unverified Commit 06d98e27 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix OwlViT tests (#18253)

* Fix OwlViT tests

* Forgot one
parent 12d66b47
......@@ -40,7 +40,7 @@ _import_structure = {
try:
if not is_vision_available() or not is_torch_available():
if not is_vision_available():
raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
pass
......@@ -72,7 +72,7 @@ if TYPE_CHECKING:
from .processing_owlvit import OwlViTProcessor
try:
if not is_vision_available() or not is_torch_available():
if not is_vision_available():
raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment