Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import torch
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
text_summary
|
6 |
|
7 |
def summary (input):
|
8 |
max_length = 1024 # adjust this value as needed
|
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
text_summary= pipeline("summarization", model="Joemgu/mlong-t5-large-sumstew")
|
6 |
|
7 |
def summary (input):
|
8 |
max_length = 1024 # adjust this value as needed
|