Spaces:
Runtime error
Runtime error
Commit
·
7955e7d
1
Parent(s):
ba6cd78
minor fixes
Browse files
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 =
|
767 |
-
inputs =
|
768 |
outputs = 'text',
|
769 |
examples = [
|
770 |
-
['
|
771 |
-
['
|
772 |
-
['
|
|
|
|
|
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 |
)
|