mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Handle no action id
This commit is contained in:
@@ -9598,7 +9598,10 @@ def generate_story_image(
|
|||||||
log_image_generation(prompt, display_prompt, file_name, generation_type, log_data)
|
log_image_generation(prompt, display_prompt, file_name, generation_type, log_data)
|
||||||
#let's also add this data to the action so we know where the latest picture is at
|
#let's also add this data to the action so we know where the latest picture is at
|
||||||
logger.info("setting picture filename")
|
logger.info("setting picture filename")
|
||||||
|
try:
|
||||||
koboldai_vars.actions.set_picture(int(log_data['actionId']), file_name, prompt)
|
koboldai_vars.actions.set_picture(int(log_data['actionId']), file_name, prompt)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
logger.debug("Time to Generate Image {}".format(time.time()-start_time))
|
logger.debug("Time to Generate Image {}".format(time.time()-start_time))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user