el-filatova commited on
Commit
960a49c
·
verified ·
1 Parent(s): 0291eb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,5 +6,5 @@ calculator = pipeline('text2text-generation', model='el-filatova/mbart-gsm8k')
6
  def predict(text):
7
  return calculator(text)[0]['generated_text']
8
 
9
- iface = gr.Interface(fn=predict, inputs=[gr.Textbox(value="Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?")], outputs="text")
10
  iface.launch(share=True)
 
6
  def predict(text):
7
  return calculator(text)[0]['generated_text']
8
 
9
+ iface = gr.Interface(fn=predict, inputs=[gr.Textbox(value="I have two apples and four oranges. How many fruits do I have?")], outputs="text")
10
  iface.launch(share=True)