Пожалуйста, помогите мне, что бы я ни пытался, цвет фона кнопки не изменится. t измениться в среде Gradio.
Пожалуйста, помогите мне, что бы я ни пытался, цвет фона кнопки не изменится в среде Gradio.
css = """
#customButton {
background-color: #000000 !important;
width: 230px;
height: 40px;
margin-left: auto;
color: black ; /* 글자색을 검은색으로 설정 */
}
/* 라벨의 글자 크기를 조정하는 CSS */
span.svelte-1gfkn6j {
font-size: 18.5px ; /* 라벨의 글자 크기를 17픽셀로 조정 */
color: black ; /* 글자색을 검은색으로 설정 */
}
/* svelte-1f354aw 클래스를 가진 label의 배경색을 회색으로, 글자색을 검은색으로 설정 */
label.svelte-1f354aw {
background-color: #cccccc ; /* 회색 배경 색상 */
}
/* 'block svelte-90oupt padded' 클래스를 가진 div의 배경색을 회색으로 설정 */
div.block.svelte-90oupt.padded {
background-color: #cccccc ; /* 회색 배경 색상 */
}
/* 'block svelte-90oupt padded' 클래스를 가진 div의 배경색을 회색으로 설정 */
div.block.svelte-90oupt.padded {
background-color: #cccccc ; /* 회색 배경 색상 */
}
/* 이미지와 특정 텍스트 영역의 배경색을 흰색으로 재정의 */
img, div {
background-color: white ;
}
"""
with gr.Blocks(css=css) as demo:
gr.HTML("

")
gr.HTML(
" ANNA "
" Ask Nuclear questions & Answer "
)
with gr.Blocks("Input"):
input1 = gr.Textbox(label="Query Input")
# input2 = gr.Textbox(label="Key Input")
with gr.Blocks("Button"):
button = gr.Button("SEARCH", elem_id="customButton")
# button = gr.Button("Start",elem_id="customButton")
gr.Markdown('')
with gr.Blocks("Output"):
output1 = gr.Textbox(label="Related Searches")
gr.Markdown('')
with gr.Blocks("Output"):
output2 = gr.Textbox(label="Latest Related News")
gr.Markdown('')
with gr.Blocks("Output"):
output3 = gr.Textbox(label="Similarity Sentence")
gr.Markdown('')
with gr.Blocks("Output"):
output4 = gr.Textbox(label="Sentence Generated")
gr.Markdown('')
with gr.Blocks("Output"):
output5 = gr.Textbox(label="References")
button.click(fn=main, inputs=[input1], outputs=[output1,output2,output3,output4,output5])
demo.launch(debug=True, share=True)
Подробнее здесь: https://stackoverflow.com/questions/783 ... nvironment