kbbabu's picture
Create app.py
ed755b0
# https://huggingface.co/spaces/richardskimco/text-summarization/blob/main/app.py
# This is a duplicate app, Source above given
import gradio as gr
eg = ["Several important sub-fields of AI research (as opposed to AI itself) have used working definitions of the intelligent agents field of study, which refers to any system that perceives its environment using an AI-component and takes actions (using procedural / hard-coded components) that maximize its chance of achieving its goals.[a] While intelligent agents as systems that use artificial intelligence are an important application of AI, many AI systems do not perform any procedural (hard-coded) steps with the outputs of the AI at all, such as computer vision, speech recognition, or recommender systems (often not even deciding on an output from probabilities, but outputting several)"]
demo = gr.Interface.load("huggingface/sshleifer/distilbart-cnn-12-6",
inputs = gr.inputs.Textbox(label ="Input"),
outputs = gr.outputs.Textbox(label = "Output"),
title = "Text Summarization",
eg = eg
)
demo.launch()