Skip to content

Commit

Permalink
Remove a deprecated line of code
Browse files Browse the repository at this point in the history
fix #247
  • Loading branch information
Kilvoctu committed Mar 9, 2024
1 parent fb76c78 commit 4b6f46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/stablecog.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ async def update_progress(event_loop, status_message_task, s, queue_object, trie
event_loop.create_task(
update_progress(event_loop, status_message_task, s, queue_object, tries + 1, any_job, 0, last_file))


class StableCog(commands.Cog, name='Stable Diffusion', description='Create images from natural language.'):
ctx_parse = discord.ApplicationContext

Expand Down Expand Up @@ -661,7 +662,6 @@ def start_thread(*args):
# increment seed for view when using batch
if count != len(image_data):
batch_seed = list(queue_object.view.input_tuple)
batch_seed[10] += 1
new_tuple = tuple(batch_seed)
queue_object.view.input_tuple = new_tuple

Expand Down

0 comments on commit 4b6f46c

Please sign in to comment.