Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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)
|