Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from fastapi import FastAPI
|
|
10 |
from fastapi.responses import RedirectResponse
|
11 |
|
12 |
# Load your custom summarization model
|
13 |
-
pipe = pipeline("
|
14 |
|
15 |
# Document text extraction function
|
16 |
def extract_text(file):
|
|
|
10 |
from fastapi.responses import RedirectResponse
|
11 |
|
12 |
# Load your custom summarization model
|
13 |
+
pipe = pipeline("summarization", model="facebook/bart-large-cnn", tokenizer="facebook/bart-large-cnn")
|
14 |
|
15 |
# Document text extraction function
|
16 |
def extract_text(file):
|