Spaces:
Runtime error
Runtime error
Overthrow4232
commited on
Commit
•
11c1460
1
Parent(s):
325eb6e
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import json
|
|
9 |
sat = SaT("sat-3l-sm")
|
10 |
sat.half().to("cuda")
|
11 |
|
12 |
-
@spaces.GPU
|
13 |
def segment_text(input_text):
|
14 |
# Use the SaT model to split the input text into sentences
|
15 |
sentences = sat.split(input_text)
|
|
|
9 |
sat = SaT("sat-3l-sm")
|
10 |
sat.half().to("cuda")
|
11 |
|
12 |
+
@spaces.GPU(duration=59)
|
13 |
def segment_text(input_text):
|
14 |
# Use the SaT model to split the input text into sentences
|
15 |
sentences = sat.split(input_text)
|