Spaces:
Running
Running
Update app.py
Browse files
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
|
296 |
-
if
|
297 |
-
prompts.append(f"{
|
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 |
|