Upload prompt_selector_1215.py
Browse files986 unmodified lines98798898999099199299399499599099199212 unmodified lines10051006100710141008100910101011986 unmodified lines if(tokens[0]): access_token = tokens[0].strip() tprint("1 Account automatically loaded : ",access_token[-5:]) try: if(len(tokens)>=2): access_token_multi = tokens[1].strip() tprint("2 Account automatically loaded : ",access_token[-5:]+", "+access_token_multi[-5:]) except: access_token_multi = None if(access_token): button_generate.config(state='normal')
def character_search_thread():12 unmodified lines selected_index = selected_indices[0] # Get the keyword from the listbox, split by '-', and trim whitespace keyword_with_count = listbox.get(selected_index).strip() keyword = keyword_with_count.split('-')[0].strip() keyword = keyword_with_count.split(' - ')[0].strip() # Call the analyze function with the selected keyword print(f"Analyzing keyword: {keyword}")Danbooru Prompt Selector/.py_version/prompt_selector_1215.py+1-7