Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ sents = set()
|
|
48 |
for txt in {'harvard_sentences', 'llama3_command-r_sentences_1st_person', 'llama3_command-r_sentences_excla', 'llama3_command-r_questions'}:
|
49 |
txt += '.txt'
|
50 |
subprocess.run(['wget', f'https://huggingface.co/spaces/Pendrokar/TTS-Spaces-Arena/resolve/main/{txt}'])
|
51 |
-
with open(
|
52 |
-
sents.update(
|
53 |
print('len(sents)', len(sents))
|
54 |
|
55 |
def parens_to_angles(s):
|
|
|
48 |
for txt in {'harvard_sentences', 'llama3_command-r_sentences_1st_person', 'llama3_command-r_sentences_excla', 'llama3_command-r_questions'}:
|
49 |
txt += '.txt'
|
50 |
subprocess.run(['wget', f'https://huggingface.co/spaces/Pendrokar/TTS-Spaces-Arena/resolve/main/{txt}'])
|
51 |
+
with open(txt, 'r') as r:
|
52 |
+
sents.update(r.read().strip().splitlines())
|
53 |
print('len(sents)', len(sents))
|
54 |
|
55 |
def parens_to_angles(s):
|