Skip to content

Commit

Permalink
turn off deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cbh123 committed Mar 28, 2024
1 parent 63270e7 commit 202bc9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/emoji_web/live/home_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,11 @@ defmodule EmojiWeb.HomeLive do
defp gen_image(prompt) do
{:ok, deployment} = Replicate.Deployments.get("cbh123/sdxl-emoji")

{:ok, model} = Replicate.Models.get("fofr/sdxl-emoji")
version = Replicate.Models.get_latest_version!(model)

{:ok, prediction} =
Replicate.Deployments.create_prediction(deployment,
Replicate.Predictions.create(version,
prompt: prompt,
width: 512,
height: 512,
Expand Down

0 comments on commit 202bc9a

Please sign in to comment.