Translation / app.py
atomiclabs's picture
Upload app.py
0e2bb37
raw
history blame
785 Bytes
import gradio as gr
iface = gr.Interface.load("huggingface/sshleifer/distilbart-cnn-12-6",
examples = [
['Is this review positive or negative? Review: Best cast iron skillet you will every buy.'],
["Barack Obama nominated Hilary Clinton as his secretary of state on Monday. He chose her because she had foreign affairs experience as a former First Lady. In the previous sentence, decide who 'her' is referring to."],
["On a shelf, there are five books: a gray book, a red book, a purple book, a blue book, and a black book. The red book is to the right of the gray book. The black book is to the left of the blue book. The blue book is to the left of the gray book. The purple book is the second from the right. Which book is the leftmost book?"],
])
iface.launch()