Skip to content

Commit

Permalink
Fix stable diffusion (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmor5 authored Dec 15, 2022
1 parent e867a7c commit 52632b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bumblebee/diffusion/stable_diffusion.ex
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ defmodule Bumblebee.Diffusion.StableDiffusion do

defp get_tokens(prompt) when is_binary(prompt), do: [{prompt, ""}]

defp get_tokens(prompts) when is_list(prompts), do: Enum.flat_map(prompts, &get_tokens/1)

defp validate_input(input) when is_binary(input), do: true

defp validate_input(%{prompt: input, negative: negative})
Expand Down

0 comments on commit 52632b1

Please sign in to comment.