Skip to content

Commit 6e584f1

Browse files
abrichrclaude
andcommitted
fix(modal): remove unused os import
Fixes ruff F401 lint error on modal_cloud.py. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 31a2068 commit 6e584f1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

openadapt_ml/cloud/modal_cloud.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
import argparse
4040
import json
41-
import os
4241
import subprocess
4342
import sys
4443
import tempfile
@@ -387,7 +386,9 @@ def infer(
387386
text_content = msg["content"]
388387
# Replace <image> tag in text with proper multi-modal format
389388
if "<image>" in text_content:
390-
text_content = text_content.replace("<image>\n", "").replace("<image>", "")
389+
text_content = text_content.replace("<image>\n", "").replace(
390+
"<image>", ""
391+
)
391392
msg["content"] = [
392393
{"type": "image"},
393394
{"type": "text", "text": text_content},
@@ -404,9 +405,7 @@ def infer(
404405
text=[text], images=[image], return_tensors="pt", padding=True
405406
)
406407
else:
407-
inputs = infer._processor(
408-
text=[text], return_tensors="pt", padding=True
409-
)
408+
inputs = infer._processor(text=[text], return_tensors="pt", padding=True)
410409

411410
inputs = inputs.to(infer._model.device)
412411

0 commit comments

Comments
 (0)