Spaces:
Runtime error
Runtime error
change model for text summary
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ async def home():
|
|
49 |
@app.post("/summary")
|
50 |
async def summary_text_bart(input:TextSummary):
|
51 |
"add text to summarize"
|
52 |
-
try:
|
53 |
|
54 |
preprocessed_text_summary =re.sub(r'\s+',' ',input.text).strip()
|
55 |
summary = pipe(preprocessed_text_summary,do_sample=False)
|
|
|
49 |
@app.post("/summary")
|
50 |
async def summary_text_bart(input:TextSummary):
|
51 |
"add text to summarize"
|
52 |
+
try:
|
53 |
|
54 |
preprocessed_text_summary =re.sub(r'\s+',' ',input.text).strip()
|
55 |
summary = pipe(preprocessed_text_summary,do_sample=False)
|