Skip to content

Commit c1ca393

Browse files
committed
Mix format
1 parent 96aca92 commit c1ca393

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/captioning.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ if ImageVision.bumblebee_configured?() do
179179
defn_options: defn_options()
180180
)
181181

182-
{Nx.Serving,
183-
serving: serving, name: configuration[:name], batch_timeout: 100}
182+
{Nx.Serving, serving: serving, name: configuration[:name], batch_timeout: 100}
184183
end
185184
end
186185

test/zero_shot_test.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ defmodule Image.ZeroShotTest do
6969

7070
test "template: nil uses labels verbatim" do
7171
image = Image.open!(Path.join(@images, "puppy.webp"))
72-
results = Image.ZeroShot.classify(image, ["a photo of a dog", "a photo of a car"], template: nil)
72+
73+
results =
74+
Image.ZeroShot.classify(image, ["a photo of a dog", "a photo of a car"], template: nil)
75+
7376
assert [%{label: "a photo of a dog"} | _] = results
7477
end
7578
end

0 commit comments

Comments
 (0)