Spaces:
Sleeping
Sleeping
Commit ·
cf0838b
1
Parent(s): 60f479a
fix count_tokens argument mistake
Browse files
app.py
CHANGED
|
@@ -624,7 +624,7 @@ async def main(chosen_artist, prompt):
|
|
| 624 |
|
| 625 |
|
| 626 |
#count tokens anyway, for later usage:
|
| 627 |
-
total_tokens = count_tokens(
|
| 628 |
print(f"Total tokens of prompt: {total_tokens}")
|
| 629 |
|
| 630 |
|
|
|
|
| 624 |
|
| 625 |
|
| 626 |
#count tokens anyway, for later usage:
|
| 627 |
+
total_tokens = count_tokens(final_prompt)
|
| 628 |
print(f"Total tokens of prompt: {total_tokens}")
|
| 629 |
|
| 630 |
|