Upload 3 files
Browse files
Danbooru Prompt Selector/TEST2024/NAIA_0217_testv1.exe
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:df93f967cae2277ce50bd3b520c453a62489f4e88d599fb0e6f7a31fea1cac9d
|
3 |
+
size 888962659
|
Danbooru Prompt Selector/TEST2024/NAIA_0217_testv1.py
CHANGED
@@ -1448,7 +1448,7 @@ class App(customtkinter.CTk, TkinterDnD.DnDWrapper):
|
|
1448 |
null_prompt_attention() # 문자열 비었다고 경고
|
1449 |
else:
|
1450 |
self.cached_rows = df
|
1451 |
-
|
1452 |
update_labels(df)
|
1453 |
self.searching_flag = False
|
1454 |
self.search_button.configure(text="검색", state="normal")
|
@@ -1845,7 +1845,6 @@ class App(customtkinter.CTk, TkinterDnD.DnDWrapper):
|
|
1845 |
magic_word["cond"] = self.conditional_prompt_input.get("0.0", "end-1c") if len(self.conditional_prompt_input.get("0.0", "end-1c")) > 4 else None
|
1846 |
if type(edf) == type(None):
|
1847 |
random_index = np.random.choice(self.cached_rows.index)
|
1848 |
-
#print(random_index)
|
1849 |
popped_row = self.cached_rows.loc[random_index]
|
1850 |
self.current_popped_row = popped_row.copy()
|
1851 |
self.cached_rows.drop(random_index, inplace=True)
|
|
|
1448 |
null_prompt_attention() # 문자열 비었다고 경고
|
1449 |
else:
|
1450 |
self.cached_rows = df
|
1451 |
+
df.reset_index(drop=True, inplace=True)
|
1452 |
update_labels(df)
|
1453 |
self.searching_flag = False
|
1454 |
self.search_button.configure(text="검색", state="normal")
|
|
|
1845 |
magic_word["cond"] = self.conditional_prompt_input.get("0.0", "end-1c") if len(self.conditional_prompt_input.get("0.0", "end-1c")) > 4 else None
|
1846 |
if type(edf) == type(None):
|
1847 |
random_index = np.random.choice(self.cached_rows.index)
|
|
|
1848 |
popped_row = self.cached_rows.loc[random_index]
|
1849 |
self.current_popped_row = popped_row.copy()
|
1850 |
self.cached_rows.drop(random_index, inplace=True)
|
Danbooru Prompt Selector/TEST2024/NAIA_random_function_core.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import pandas
|
2 |
import numpy as np
|
3 |
import re
|
4 |
|
@@ -96,6 +96,8 @@ def find_keyword_index(general):
|
|
96 |
def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c, nsfw, data, magic_word):
|
97 |
boys = ["1boy", "2boys", "3boys", "4boys", "5boys", "6+boys"]
|
98 |
girls = ["1girl", "2girls", "3girls", "4girls", "5girls", "6+girls"]
|
|
|
|
|
99 |
general = [item.strip() for item in popped_row['general'].split(',')]
|
100 |
special_word_check = fix_prompt+', '+after_prompt
|
101 |
special_word_check = [item.strip() for item in special_word_check.split(',')]
|
|
|
1 |
+
import pandas as pd
|
2 |
import numpy as np
|
3 |
import re
|
4 |
|
|
|
96 |
def RFP(popped_row, fix_prompt, after_prompt, auto_hide_prompt, rm_a, rm_s, rm_c, nsfw, data, magic_word):
|
97 |
boys = ["1boy", "2boys", "3boys", "4boys", "5boys", "6+boys"]
|
98 |
girls = ["1girl", "2girls", "3girls", "4girls", "5girls", "6+girls"]
|
99 |
+
if isinstance(popped_row, pd.DataFrame):
|
100 |
+
popped_row = popped_row.iloc[0]
|
101 |
general = [item.strip() for item in popped_row['general'].split(',')]
|
102 |
special_word_check = fix_prompt+', '+after_prompt
|
103 |
special_word_check = [item.strip() for item in special_word_check.split(',')]
|