Skip to content

Commit

Permalink
fix civitai sample upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fredgido committed Sep 23, 2023
1 parent 3cb2b29 commit e6a093d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/logical/source/extractor/civitai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,7 @@ def user_json
end

def width
case image_metadata["Size"].to_s.scan(/(\d+)x(\d+)/)
in [[width, height]]
width
else
next_data.dig("queries", 0, "state", "data", "width")
end
next_data.dig("queries", 0, "state", "data", "width")
end
end
end

0 comments on commit e6a093d

Please sign in to comment.