import gradio as gr
import numpy as np
css = """
#warning {background-color: #FFCCCB}
.feedback textarea {font-size: 64px !important}
"""
with gr.Blocks(css=css) as demo:
box1 = gr.Button(value="Good Job", elem_classes="feedback")
box2 = gr.Textbox(value="Failure", elem_id="warning",
elem_classes="feedback")
if __name__ == "__main__":
demo.launch(inbrowser=True)
this css works changing the button style and the textarea
css = """
#warning {background-color: #FFCCCB}
.feedback {font-size: 64px !important;}
.feedback textarea {font-size: 64px !important;}
"""
1 Like
Thanks.it works! Could you tell me how it works? whatβs the diff between textbox and button??