Update app.py
Browse files79 unmodified lines80818283848586878814 unmodified lines1031041051061071081092 unmodified lines11211311411579 unmodified linestransition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;box-shadow: none !important;}.gr-button-primary:hover{background: none rgb(66, 133, 244) !important;box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;}"""14 unmodified linesoutput_label = gr.Label(label="Classification Scores")# Classification buttonsubmit_button = gr.Button("Classify")submit_button.click(fn=classify_text, inputs=[model_dropdown, text_input, label_input], outputs=output_label)# Example input/output pairs2 unmodified lines# Launch the appif __name__ == "__main__":iface.launch()79 unmodified lines808182838485868714 unmodified lines1021031041051061071082 unmodified lines11111211379 unmodified linestransition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;box-shadow: none !important;}.classify-button {background: linear-gradient(90deg, yellow, orange) !important;}"""14 unmodified linesoutput_label = gr.Label(label="Classification Scores")# Classification buttonsubmit_button = gr.Button("Classify", elem_classes=["classify-button"])submit_button.click(fn=classify_text, inputs=[model_dropdown, text_input, label_input], outputs=output_label)# Example input/output pairs2 unmodified lines# Launch the appif __name__ == "__main__":iface.launch()
app.py+3-5