Spaces:
Running
on
Zero
Running
on
Zero
ai-forever
commited on
Commit
•
7f2245c
1
Parent(s):
506c81c
Update src/llm_utils.py
Browse files- src/llm_utils.py +1 -1
src/llm_utils.py
CHANGED
@@ -34,7 +34,7 @@ def llm_generate_titles(
|
|
34 |
titles_str = llm_generate(prompt)
|
35 |
titles = []
|
36 |
for title in titles_str.split("\n"):
|
37 |
-
sep_index = title.index('. ')
|
38 |
title = title.strip()[sep_index:]
|
39 |
title = title.replace('.', '')
|
40 |
title = title.replace('\n', '')
|
|
|
34 |
titles_str = llm_generate(prompt)
|
35 |
titles = []
|
36 |
for title in titles_str.split("\n"):
|
37 |
+
sep_index = title.index('. ')
|
38 |
title = title.strip()[sep_index:]
|
39 |
title = title.replace('.', '')
|
40 |
title = title.replace('\n', '')
|