Spaces:
Sleeping
Sleeping
wii
Browse files
main.py
CHANGED
@@ -138,6 +138,7 @@ classifier = pipeline("text-classification", model="distilbert-base-uncased-fine
|
|
138 |
def classify_segments(segments):
|
139 |
return [classifier(segment) for segment in segments]
|
140 |
|
|
|
141 |
@app.post("/summarize")
|
142 |
async def summarize(request: TextRequest):
|
143 |
try:
|
|
|
138 |
def classify_segments(segments):
|
139 |
return [classifier(segment) for segment in segments]
|
140 |
|
141 |
+
|
142 |
@app.post("/summarize")
|
143 |
async def summarize(request: TextRequest):
|
144 |
try:
|