From 9bac523a37478c560e246efedcde04c5c7cbb7d5 Mon Sep 17 00:00:00 2001 From: AIrjen Date: Mon, 12 Feb 2024 21:02:49 +0100 Subject: [PATCH] Update main.py fix for too long filenames --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a5e580a..d7b40c0 100644 --- a/main.py +++ b/main.py @@ -160,7 +160,7 @@ def generateimages(amount = 1, size = "all",model = "currently selected model",s # extract the desired substring using slicing filename = randomprompt[start_index:end_index] else: - filename = randomsubject + filename = randomsubject[0:128] # Fix for too long filenames # cleanup some unsafe things in the filename filename = filename.replace("\"", "")