I use all methods to try to let the output box fit the height of screen, but it does not work. Does anyone know how to fix the problem? Thank you so much
css = “”"
.gradio-output {
height: 100% !important; # 設定訊息框的高度
width: 100% !important
overflow-y: hidden;
text-rendering: optimizeLegibility;
flex-grow: 1 !important;
overflow: auto !important;
#col { height: calc(100vh - 112px - 16px) !important; }
}
“”"
theme=gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.pink,font=[gr.themes.GoogleFont(“LXGW WenKai Mono TC”)]).set(
body_background_fill=‘#FFF5EE’
)
with gr.Blocks(theme=theme,css=css) as demo:
with gr.Row():
with gr.Column(elem_id=“col”):
gr.HTML(“”"
.gradio-output{
height: 100% !important; # 設定訊息框的高度
width: 100% !important
text-rendering: optimizeLegibility; # 啟用抗鋸齒渲染
}
“”")
gr.ChatInterface(
main_pipeline,
type=“messages”,
css=css,
fill_height=True
)