Casio991ms commited on
Commit
7955e7d
1 Parent(s): ba6cd78

minor fixes

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -763,15 +763,16 @@ translate(check_str)
763
  translate('Nafis had 31 raspberry . He slice each raspberry into 19 slices . How many raspberry slices did Denise make?')
764
 
765
  interface = gr.Interface(
766
- fn = translate,
767
- inputs = 'text',
768
  outputs = 'text',
769
  examples = [
770
- ['Denise had 31 raspberry. He slice each raspberry into 19 slices. How many raspberry slices did Denise make?'],
771
- ['Cynthia snap up 14 bags of blueberry. how many blueberry in each bag? If total 94 blueberry Cynthia snap up.'],
772
- ['Donald had some Watch. Jonathan gave him 7 more. Now Donald has 18 Watch. How many Watch did Donald have initially?']
 
 
773
  ],
774
- theme = 'grass',
775
  title = 'Mathbot',
776
  description = 'Enter a simple math word problem and our AI will try to predict an expression to solve it. Mathbot occasionally makes mistakes. Feel free to press "flag" if you encounter such a scenario.',
777
  )
 
763
  translate('Nafis had 31 raspberry . He slice each raspberry into 19 slices . How many raspberry slices did Denise make?')
764
 
765
  interface = gr.Interface(
766
+ fn = hw,
767
+ inputs = gr.Textbox(lines = 2),
768
  outputs = 'text',
769
  examples = [
770
+ ['Rachel bought two coloring books. One had 23 pictures and the other had 32. After one week she had colored 19 of the pictures. How many pictures does she still have to color?'],
771
+ ['Denise had 31 raspberries. He slices each raspberry into 19 slices. How many raspberry slices did Denise make?'],
772
+ ['A painter needed to paint 12 rooms in a building. Each room takes 7 hours to paint. If he already painted 5 rooms, how much longer will he take to paint the rest?'],
773
+ ['Jerry had 135 pens. John took 19 pens from him. How many pens Jerry have left?'],
774
+ ['Donald had some apples. Hillary took 20 apples from him. Now Donald has 100 apples. How many apples Donald had before?']
775
  ],
 
776
  title = 'Mathbot',
777
  description = 'Enter a simple math word problem and our AI will try to predict an expression to solve it. Mathbot occasionally makes mistakes. Feel free to press "flag" if you encounter such a scenario.',
778
  )