Spaces:
Runtime error
Runtime error
File size: 264 Bytes
91c143d |
1 2 3 4 5 6 7 8 9 |
from transformers import pipeline
import gradio as gr
summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-small", truncation=True, framework="tf")
def translate(text):
text = text.replace('"', '"')
return result[0]["summary_text"] |