We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea5a40 commit 574bc91Copy full SHA for 574bc91
label_studio_ml/examples/deepgram/test_model.py
@@ -7,8 +7,10 @@
7
# Ensure the Label Studio SDK inside the Deepgram example sees harmless defaults.
8
os.environ.setdefault('LABEL_STUDIO_URL', 'http://localhost')
9
os.environ.setdefault('LABEL_STUDIO_API_KEY', 'test-token')
10
-
11
-from label_studio_ml.examples.deepgram import model as deepgram_model # noqa: E402
+try:
+ from label_studio_ml.examples.deepgram import model as deepgram_model # noqa: E402
12
+except ImportError:
13
+ from model import DeepgramModel as deepgram_model
14
15
16
@pytest.fixture
0 commit comments