Spaces:
Configuration error
Configuration error
Update app.py
Browse files45 unmodified lines464748495051525354555657585960615354556263646545 unmodified lines fn=inference, inputs=inputs, outputs=outputs, show_progress=True ) title = "Tutorial: BERT-based Text Classificatioin", demo.queue()demo.launch()
demo = gr.Interface( fn=inference, inputs=gr.Textbox(label="Input Text", scale=2, container=False), outputs=gr.outputs.Textbox(label="Output Label"), examples = [ ["My last two weather pics from the storm on August 2nd. People packed up real fast after the temp dropped and winds picked up.", 1], ["Lying Clinton sinking! Donald Trump singing: Let's Make America Great Again!", 0], ], demo.queue()demo.launch() title="Tutorial: BERT-based Text Classificatioin", )
demo.launch(debug=True)app.py+13-3