nlpaper / app.py
Aleksei Artemiev
Add summarizer
e3e6688
raw
history blame
193 Bytes
import gradio as gr
from predict import summarize
def summarize_text(text):
return summarize(text)
iface = gr.Interface(fn=summarize_text, inputs="text", outputs="text")
iface.launch()