Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
# Pipeline'ı global olarak oluşturuyoruz
|
4 |
-
pipe = pipeline("
|
5 |
|
6 |
def split_text_into_chunks(text, chunk_size=1000):
|
7 |
"""
|
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
# Pipeline'ı global olarak oluşturuyoruz
|
4 |
+
pipe = pipeline("text2text-generation", model="google-t5/t5-base", device="cpu")
|
5 |
|
6 |
def split_text_into_chunks(text, chunk_size=1000):
|
7 |
"""
|