el-filatova commited on
Commit
21c0ebb
·
verified ·
1 Parent(s): 4b9d553

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ from transformers import pipeline
4
+ classifier = pipeline('text2text-generation', model='el-filatova/mbart-gsm8k')
5
+
6
+ def predict(text):
7
+ return neutralizer(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()