JLW commited on
Commit
b8e31ad
1 Parent(s): 195bd75

Add more examples from PAL paper

Browse files
Files changed (1) hide show
  1. app.py +49 -2
app.py CHANGED
@@ -111,9 +111,51 @@ with block:
111
  "Tim decides to light off some fireworks for the fourth of July. He buys a package of fireworks worth $2267779.8152 and another pack worth twice that much. He gets a 20% discount on them. He also buys a finale firework that costs $150. How much did he spend in total?"],
112
  inputs=request
113
  )
114
- with gr.Accordion("Miscellaneous examples", open=False):
115
  gr.Examples(
116
- examples=["42 times 81", "What is the sum of the first 21 Fibonacci numbers?"],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  inputs=request
118
  )
119
  with gr.Accordion("Examples from Google PaLM/Minerva paper", open=False):
@@ -121,6 +163,11 @@ with block:
121
  examples=["A line parallel to y = 4x + 6 passes through (5, 10). What is the y-coordinate of the point where this line crosses the y-axis?"],
122
  inputs=request
123
  )
 
 
 
 
 
124
 
125
  gr.HTML("""
126
  This simple app demonstrates a couple of techniques for using GPT-3 to solve math problems.
 
111
  "Tim decides to light off some fireworks for the fourth of July. He buys a package of fireworks worth $2267779.8152 and another pack worth twice that much. He gets a 20% discount on them. He also buys a finale firework that costs $150. How much did he spend in total?"],
112
  inputs=request
113
  )
114
+ with gr.Accordion("Colored Objects", open=False):
115
  gr.Examples(
116
+ examples=[
117
+ "On the desk, I see three turquoise puzzles, two turquoise scrunchiephone chargers, two red scrunchiephone chargers, and three mauve scrunchiephone chargers. If I remove all the scrunchiephone chargers from the desk, how many mauve items remain on it?",
118
+ "On the table, you see two red puzzles, two grey pencils, two grey pairs of sunglasses, two grey bracelets, and two red bracelets. If I remove all the puzzles from the table, how many grey objects remain on it?",
119
+ "On the desk, there is one turquoise sheet of paper, two red puzzles, two yellow pairs of sunglasses, three grey puzzles, two turquoise stress balls, two red pairs of sunglasses, three grey pairs of sunglasses, two yellow sheets of paper, two grey sheets of paper, one turquoise pair of sunglasses, three red sheets of paper, and three yellow puzzles. If I remove all the grey items from the desk, how many sheets of paper remain on it?",
120
+ "On the floor, you see a bunch of items arranged in a row: a magenta fidget spinner, a silver pencil, a yellow mug, a red necklace, and a turquoise pen. How many non-turquoise items do you see to the right of the red item?",
121
+ "On the nightstand, I see two red fidget spinners, two red plates, one turquoise notebook, three turquoise plates, three turquoise bracelets, and three red bracelets. If I remove all the notebooks from the nightstand, how many red objects remain on it?",
122
+ "On the table, there are three silver necklaces, three yellow textbooks, two grey mugs, one silver textbook, one grey textbook, and two silver mugs. If I remove all the textbooks from the table, how many yellow objects remain on it?",
123
+ "On the table, there are two turquoise necklaces, one silver necklace, two turquoise fidget spinners, one purple pair of sunglasses, three turquoise pairs of sunglasses, and three purple pencils. If I remove all the pairs of sunglasses from the table, how many turquoise things remain on it?",
124
+ "On the table, I see one orange pair of sunglasses, three brown pairs of sunglasses, three orange paperclips, three orange fidget spinners, one grey paperclip, one grey pair of sunglasses, two turquoise paperclips, two brown paperclips, three turquoise fidget spinners, and two grey fidget spinners. If I remove all the orange things from the table, how many pairs of sunglasses remain on it?",
125
+ "On the floor, you see two pink cups, one teal cup, one teal mug, and three gold cups. If I remove all the cups from the floor, how many gold items remain on it?",
126
+ "On the floor, there is one magenta scrunchiephone charger and three grey pencils. If I remove all the pencils from the floor, how many burgundy items remain on it?"
127
+ ],
128
+ inputs=request
129
+ )
130
+ with gr.Accordion("Date Understanding", open=False):
131
+ gr.Examples(
132
+ examples=[
133
+ "Jane quit her job on Mar 20, 2020. 176 days have passed since then. What is the date tomorrow in MM/DD/YYYY?",
134
+ "It was Sept. 1st, 2021 a week ago. What is the date today in MM/DD/YYYY?",
135
+ "The deadline is Jun 1, 2021, which is 2 days away from now. What is the date one week ago from today in MM/DD/YYYY?",
136
+ "Jane quit her job on Mar 20, 2020. 176 days have passed since then. What is the date one week ago from today in MM/DD/YYYY?",
137
+ "Jane thinks today is 6/18/2019, but John thinks today is 6/19/2019. Jane is correct. What is the date one year ago from today in MM/DD/YYYY?",
138
+ "Jane booked a flight for tomorrow, Jul 29, 2002. What is the date 10 days ago in MM/DD/YYYY?",
139
+ "On May 9th, 2017 Jane bought 40 eggs. She ate one per day. Today she ran out of eggs. What is the date one week from today in MM/DD/YYYY?",
140
+ "Jane booked a flight for tomorrow, Jul 29, 2002. What is the date yesterday in MM/DD/YYYY?",
141
+ "Today is the second day of the third month of 1966. What is the date one week ago from today in MM/DD/YYYY?",
142
+ "Yesterday was 12/31/1929. Today could not be 12/32/1929 because December has only 31 days. What is the date a month ago in MM/DD/YYYY?"
143
+ ],
144
+ inputs=request
145
+ )
146
+ with gr.Accordion("Repeat Copy", open=False):
147
+ gr.Examples(
148
+ examples=[
149
+ "Say the days of the week but only the weekend days, two times.",
150
+ "Repeat the phrase all cars eat gas four times. On the odd times, drop words that start with vowels.",
151
+ "Say all work and no play makes three times, but every even time add Jack and odd time add Jill.",
152
+ "Say the letters of the alphabet in capital letters, but only the odd ones.",
153
+ "Repeat cheese seven times; every third say whiz.",
154
+ "Say pickup a pound of green beans twice, replacing a pound with a bunch for even times and a handful for odd.",
155
+ "Say the botanical gardens are five times. If the time divides evenly by two add beautiful, or by three add wonderful. Otherwise say great.",
156
+ "Say the village has a population five times, and after odd times add larger than California.",
157
+ "Repeat all the world seven times, and after every second time add is a stage."
158
+ ],
159
  inputs=request
160
  )
161
  with gr.Accordion("Examples from Google PaLM/Minerva paper", open=False):
 
163
  examples=["A line parallel to y = 4x + 6 passes through (5, 10). What is the y-coordinate of the point where this line crosses the y-axis?"],
164
  inputs=request
165
  )
166
+ with gr.Accordion("Miscellaneous examples", open=False):
167
+ gr.Examples(
168
+ examples=["42 times 81", "What is the sum of the first 21 Fibonacci numbers?"],
169
+ inputs=request
170
+ )
171
 
172
  gr.HTML("""
173
  This simple app demonstrates a couple of techniques for using GPT-3 to solve math problems.