Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def split_into_sentences(text):
|
|
9 |
sentences = sentence_endings.split(text)
|
10 |
return [sentence.strip() for sentence in sentences if sentence]
|
11 |
|
12 |
-
@
|
13 |
def process_paragraph(paragraph, progress=gr.Progress()):
|
14 |
sentences = split_into_sentences(paragraph)
|
15 |
results = []
|
|
|
9 |
sentences = sentence_endings.split(text)
|
10 |
return [sentence.strip() for sentence in sentences if sentence]
|
11 |
|
12 |
+
@spaces.GPU(duration=120)
|
13 |
def process_paragraph(paragraph, progress=gr.Progress()):
|
14 |
sentences = split_into_sentences(paragraph)
|
15 |
results = []
|