Upload 3 files
Browse filesFiles changed (3)
123version https://git-lfs.github.com/spec/v1oid sha256:b86106cdd1e97f072bea374d18a7b19112c2a49ccd21a826052cbc8c52fb8023size 888962451123version https://git-lfs.github.com/spec/v1oid sha256:df93f967cae2277ce50bd3b520c453a62489f4e88d599fb0e6f7a31fea1cac9dsize 888962659
1447 unmodified lines1448144914501451145214531454390 unmodified lines18451846184718481849185018511447 unmodified linesnull_prompt_attention() # 문자열 비었다고 경고else:self.cached_rows = df#df.reset_index(drop=True, inplace=True)update_labels(df)self.searching_flag = Falseself.search_button.configure(text="검색", state="normal")390 unmodified linesmagic_word["cond"] = self.conditional_prompt_input.get("0.0", "end-1c") if len(self.conditional_prompt_input.get("0.0", "end-1c")) > 4 else Noneif type(edf) == type(None):random_index = np.random.choice(self.cached_rows.index)#print(random_index)popped_row = self.cached_rows.loc[random_index]self.current_popped_row = popped_row.copy()self.cached_rows.drop(random_index, inplace=True)1447 unmodified lines1448144914501451145214531454390 unmodified lines1845184618471848184918501447 unmodified linesnull_prompt_attention() # 문자열 비었다고 경고else:self.cached_rows = dfdf.reset_index(drop=True, inplace=True)update_labels(df)self.searching_flag = Falseself.search_button.configure(text="검색", state="normal")390 unmodified linesmagic_word["cond"] = self.conditional_prompt_input.get("0.0", "end-1c") if len(self.conditional_prompt_input.get("0.0", "end-1c")) > 4 else Noneif type(edf) == type(None):random_index = np.random.choice(self.cached_rows.index)popped_row = self.cached_rows.loc[random_index]self.current_popped_row = popped_row.copy()self.cached_rows.drop(random_index, inplace=True)
123491 unmodified lines96979899100101import pandasimport numpy as npimport re91 unmodified linesdef RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c, nsfw, data, magic_word):boys = ["1boy", "2boys", "3boys", "4boys", "5boys", "6+boys"]girls = ["1girl", "2girls", "3girls", "4girls", "5girls", "6+girls"]general = [item.strip() for item in popped_row['general'].split(',')]special_word_check = fix_prompt+', '+after_promptspecial_word_check = [item.strip() for item in special_word_check.split(',')]123491 unmodified lines96979899100101102103import pandas as pdimport numpy as npimport re91 unmodified linesdef RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c, nsfw, data, magic_word):boys = ["1boy", "2boys", "3boys", "4boys", "5boys", "6+boys"]girls = ["1girl", "2girls", "3girls", "4girls", "5girls", "6+girls"]if isinstance(popped_row, pd.DataFrame):popped_row = popped_row.iloc[0]general = [item.strip() for item in popped_row['general'].split(',')]special_word_check = fix_prompt+', '+after_promptspecial_word_check = [item.strip() for item in special_word_check.split(',')]
Danbooru Prompt Selector/TEST2024/NAIA_0217_testv1.exe+2-2
Danbooru Prompt Selector/TEST2024/NAIA_0217_testv1.py+1-2
Danbooru Prompt Selector/TEST2024/NAIA_random_function_core.py+3-1