Spaces:
Sleeping
Sleeping
from transformers import pipeline | |
summarizer = pipeline("summarization") | |
import gradio as gr | |
def summarization (text): | |
resume = summarizer(text) | |
return resume[0]["summary_text"] | |
demo = gr.Interface(summarization, title= "ET SI JE FESAIS TON RESUME?", inputs = "text", outputs = "text", description = "Donnez-moi votre texte et je vous le résume en quelques mots") | |
demo.launch(quiet = True) |