File size: 1,218 Bytes
f5648d1
9389e0f
f5648d1
290ca01
8a55fd4
f5648d1
aa19d9e
290ca01
 
76da1e6
f339a94
588196b
 
f7cd7d5
 
eefac85
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr

title = 'Obi Bot Text Summarizer'
text = "Ramón Alberto Webster (born August 31, 1942) is a Panamanian former professional baseball first baseman. He played in Major League Baseball for the Kansas City / Oakland Athletics, San Diego Padres, and Chicago Cubs. Webster came on strong in his rookie season for the Athletics, and handily won the starting first base job over Ken Harrelson after hit .256 with 11 home runs and 51 RBI in 360 at-bats. Since the 1968 Opening Day, Webster batted cleanup in the order behind Bert Campaneris, Reggie Jackson and Sal Bando. Unfortunately, a leg injury suffered in early May limited his playing time for the rest of the season, dropping off to .214 with three homers and 23 RBI in 66 games, and never recovered his previous form. Eventually, he finished his career as a left-handed pinch-hitter producing unsatisfactory results. In a five-season career, Webster was a .244 hitter (190-for-778) with 17 home runs and 98 RBI in 380 games, including 76 runs, 31 doubles, six triples, and nine stolen bases.",
interface = gr.Interface.load("huggingface/facebook/bart-large-cnn",
theme = "darkpeach",
title = title,
examples = [[text]])

interface.launch()