aboutsummaryrefslogtreecommitdiffstats
path: root/devourer.py
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-05-19 08:11:02 +0000
committerterminaldweller <thabogre@gmail.com>2022-05-19 08:11:02 +0000
commitc081f7ae09c770f63cc70a12fcb6901ad5ebd344 (patch)
tree9b75b2f00671c24eeb0c00f0e2034ee66eb269dd /devourer.py
parentupdate (diff)
downloaddevourer-old.tar.gz
devourer-old.zip
push before a new branchold
Diffstat (limited to '')
-rw-r--r--devourer.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/devourer.py b/devourer.py
index 995ab52..34185ae 100644
--- a/devourer.py
+++ b/devourer.py
@@ -180,6 +180,10 @@ def summarizeText(text: str) -> str:
]
+def summarizeText_v2(text: str) -> str:
+ pass
+
+
def textToAudio(text: str) -> str:
"""Transform the given text into audio."""
path = str()
@@ -326,6 +330,7 @@ async def addSecureHeaders(
nltk.download("punkt")
+transformers_summarizer = transformers.pipeline("summarization")
@app.get("/mila/pdf")