Spaces:
Running
on
A10G
Running
on
A10G
osanseviero
commited on
Commit
•
58dd1da
1
Parent(s):
6c15ef5
Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,13 @@ examples = [
|
|
22 |
["Answer the following yes/no question by reasoning step-by-step. Can you write a whole Haiku in a single tweet?"],
|
23 |
["Premise: At my age you will probably have learnt one lesson. Hypothesis: It's not certain how many lessons you'll learn by your thirties. Does the premise entail the hypothesis?"],
|
24 |
["Answer the following question by reasoning step by step. The cafeteria had 23 apples. If they used 20 for lunch and bought 6 more, how many apples do they have?"],
|
|
|
|
|
|
|
25 |
]
|
26 |
|
27 |
title = "Flan T5 and Vanilla T5"
|
28 |
-
description = "This demo compares [T5-large](https://huggingface.co/t5-large) and [Flan-T5-
|
29 |
|
30 |
def inference(text):
|
31 |
output_flan = pipe_flan(text, max_length=100)[0]["generated_text"]
|
|
|
22 |
["Answer the following yes/no question by reasoning step-by-step. Can you write a whole Haiku in a single tweet?"],
|
23 |
["Premise: At my age you will probably have learnt one lesson. Hypothesis: It's not certain how many lessons you'll learn by your thirties. Does the premise entail the hypothesis?"],
|
24 |
["Answer the following question by reasoning step by step. The cafeteria had 23 apples. If they used 20 for lunch and bought 6 more, how many apples do they have?"],
|
25 |
+
["""Q: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now?
|
26 |
+
A: Roger started with 5 balls. 2 cans of 3 tennis balls each is 6 tennis balls. 5 + 6 = 11. The answer is 11.
|
27 |
+
Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?"""]
|
28 |
]
|
29 |
|
30 |
title = "Flan T5 and Vanilla T5"
|
31 |
+
description = "This demo compares [T5-large](https://huggingface.co/t5-large) and [Flan-T5-XX-large](https://huggingface.co/google/flan-t5-xxl). Note that T5 expects a very specific format of the prompts, so the examples below are not necessarily the best prompts to compare."
|
32 |
|
33 |
def inference(text):
|
34 |
output_flan = pipe_flan(text, max_length=100)[0]["generated_text"]
|