ura23 commited on
Commit
e3c9e7b
·
verified ·
1 Parent(s): 413111d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -292,9 +292,9 @@ def main():
292
  # Generate formatted output
293
  prompts = []
294
  for i, (general_tags, character_tags) in enumerate(results):
295
- # Construct the prompt based on the presence of character_part
296
- if character_part:
297
- prompts.append(f"{character_part}, {general_part}")
298
  else:
299
  prompts.append(general_part)
300
 
 
292
  # Generate formatted output
293
  prompts = []
294
  for i, (general_tags, character_tags) in enumerate(results):
295
+ # Construct the prompt based on the presence of character_tags
296
+ if character_tags:
297
+ prompts.append(f"{character_tags}, {general_part}")
298
  else:
299
  prompts.append(general_part)
300