Spaces:
Sleeping
Sleeping
Update app.py
Browse files11 unmodified lines121314151617181920212211 unmodified lines# Create the Gradio interfaceinterface = gr.Interface(fn=classify_text,inputs=gr.Textbox(lines=2, placeholder="Enter text to analyze emotions..."),outputs=gr.Label(num_top_classes=5),title="Emotion Classifier",description="Enter a sentence to see its associated emotions and confidence scores.",)# Launch the appinterface.launch()11 unmodified lines1213141516171819202122232425262711 unmodified lines# Create the Gradio interfaceinterface = gr.Interface(fn=classify_text,inputs=gr.Textbox(lines=2,placeholder="Enter text to analyze emotions...",value="I am thrilled to be a part of this amazing journey!"),outputs=gr.Label(num_top_classes=5),title="Emotion Classifier",description="Enter a sentence to see its associated emotions and confidence scores.",)# Launch the appinterface.launch()
app.py+6-1