Spaces:
Configuration error
Configuration error
Update app.py
Browse files45 unmodified lines4647484950515253545545 unmodified linesfn=inference, inputs=inputs, outputs=outputs, show_progress=True)title = "Tutorial: BERT-based Text Classificatioin",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()45 unmodified lines464748495051525354555657585960616263646545 unmodified linesfn=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],],title="Tutorial: BERT-based Text Classificatioin",)demo.launch(debug=True)
app.py+13-3