baqu2213 commited on
Commit
156fd46
1 Parent(s): 4eae981

Upload 2 files

Browse files
Danbooru Prompt Selector/TEST/prompt_selector_auto_1208_testv7.exe CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6fbbd17188be863d035697b966d48f844b014c36fbdc06c34446063cfbca3a4e
3
- size 81786194
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e4593d4f9fc5c8aaf0b3e291f874f76e1718d6c83cdfaca02dcc77d7e6e98e4
3
+ size 84497981
Danbooru Prompt Selector/TEST/prompt_selector_auto_1208_testv7.py CHANGED
@@ -181,17 +181,8 @@ def generate(width, height, positive, negative, button):
181
  log_error(zipped_bytes.decode('utf-8')[2:-2], "path_to_output_folder")
182
  time.sleep(random.uniform(1.0, 2.5))
183
  error_count += 1
184
- if '429:' in zipped_bytes.decode('utf-8')[2:-2] and access_token_multi:
185
- if not multi_token_enable:
186
- multi_token_enable = True
187
- else:
188
- mac_var.set(0)
189
- text_output.delete('1.0', tk.END)
190
- text_output.insert(tk.END, zipped_bytes.decode('utf-8')[2:-2])
191
- else:
192
  mac_var.set(0)
193
- text_output.delete('1.0', tk.END)
194
- text_output.insert(tk.END, zipped_bytes.decode('utf-8')[2:-2])
195
  button.config(state=tk.NORMAL)
196
 
197
  global delay_offset
@@ -922,9 +913,12 @@ def Auto_login_check():
922
  if(tokens[0]):
923
  access_token = tokens[0].strip()
924
  tprint("1 Account automatically loaded : ",access_token[-5:])
925
- if(len(tokens)>=2):
926
- access_token_multi = tokens[1].strip()
927
- tprint("2 Account automatically loaded : ",access_token[-5:]+", "+access_token_multi[-5:])
 
 
 
928
  if(access_token): button_generate.config(state='normal')
929
 
930
  def NAI_generation_normal(width, height, button):
 
181
  log_error(zipped_bytes.decode('utf-8')[2:-2], "path_to_output_folder")
182
  time.sleep(random.uniform(1.0, 2.5))
183
  error_count += 1
184
+ if error_count > 5:
 
 
 
 
 
 
 
185
  mac_var.set(0)
 
 
186
  button.config(state=tk.NORMAL)
187
 
188
  global delay_offset
 
913
  if(tokens[0]):
914
  access_token = tokens[0].strip()
915
  tprint("1 Account automatically loaded : ",access_token[-5:])
916
+ try:
917
+ if(len(tokens)>=2):
918
+ access_token_multi = tokens[1].strip()
919
+ tprint("2 Account automatically loaded : ",access_token[-5:]+", "+access_token_multi[-5:])
920
+ except:
921
+ access_token_multi = None
922
  if(access_token): button_generate.config(state='normal')
923
 
924
  def NAI_generation_normal(width, height, button):