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 = { ...@@ -40,7 +40,7 @@ _import_structure = {
try: try:
if not is_vision_available() or not is_torch_available(): if not is_vision_available():
raise OptionalDependencyNotAvailable() raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable: except OptionalDependencyNotAvailable:
pass pass
...@@ -72,7 +72,7 @@ if TYPE_CHECKING: ...@@ -72,7 +72,7 @@ if TYPE_CHECKING:
from .processing_owlvit import OwlViTProcessor from .processing_owlvit import OwlViTProcessor
try: try:
if not is_vision_available() or not is_torch_available(): if not is_vision_available():
raise OptionalDependencyNotAvailable() raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable: except OptionalDependencyNotAvailable:
pass 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