atomiclabs commited on
Commit
23a6769
1 Parent(s): d1704a3

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ iface = gr.Interface.load("huggingface/sshleifer/distilbart-cnn-12-6",
4
+ examples = [
5
+ ['Is this review positive or negative? Review: Best cast iron skillet you will every buy.'],
6
+ ["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."],
7
+ ["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?"],
8
+ ])
9
+
10
+ iface.launch()