ybelkada HF staff commited on
Commit
ebc01ce
1 Parent(s): ba120a3

Update app.py

Browse files

Add summarization example

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -13,6 +13,7 @@ pipe_vanilla = pipeline("text2text-generation", model="t5-large", device="cuda:0
13
  examples = [
14
  ["Please answer to the following question. Who is going to be the next Ballon d'or?"],
15
  ["Q: Can Barack Obama have a conversation with George Washington? Give the rationale before answering."],
 
16
  ["Please answer the following question: What is the boiling point of water?"],
17
  ["Translate to German: How old are you?"],
18
  ["Answer the following yes/no question by reasoning step-by-step. Can you write a whole Haiku in a single tweet?"],
 
13
  examples = [
14
  ["Please answer to the following question. Who is going to be the next Ballon d'or?"],
15
  ["Q: Can Barack Obama have a conversation with George Washington? Give the rationale before answering."],
16
+ ["Summarize the following text: Peter and Elizabeth took a taxi to attend the night party in the city. While in the party, Elizabeth collapsed and was rushed to the hospital. Since she was diagnosed with a brain injury, the doctor told Peter to stay besides her until she gets well. Therefore, Peter stayed with her at the hospital for 3 days without leaving."],
17
  ["Please answer the following question: What is the boiling point of water?"],
18
  ["Translate to German: How old are you?"],
19
  ["Answer the following yes/no question by reasoning step-by-step. Can you write a whole Haiku in a single tweet?"],