dwb2023 commited on
Commit
ff5307e
1 Parent(s): 9b80d20

Update app.py

Browse files

add elem_classes properties for styling.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,8 +45,8 @@ with gr.Blocks(css="styles.css") as demo:
45
  )
46
  submit_button = gr.Button("Submit")
47
  with gr.Column():
48
- output = gr.Textbox(label="Model Architecture", lines=20, placeholder="Model architecture will appear here...", show_copy_button=True)
49
- error_output = gr.Textbox(label="Error", lines=10, placeholder="Exceptions will appear here...", show_copy_button=True)
50
 
51
  def handle_click(model_name):
52
  model_summary, error_message = get_model_summary(model_name)
 
45
  )
46
  submit_button = gr.Button("Submit")
47
  with gr.Column():
48
+ output = gr.Textbox(label="Model Architecture", lines=20, placeholder="Model architecture will appear here...", show_copy_button=True, elem_classes=["model-architecture"])
49
+ error_output = gr.Textbox(label="Error", lines=10, placeholder="Exceptions will appear here...", show_copy_button=True, elem_classes=["error-box"])
50
 
51
  def handle_click(model_name):
52
  model_summary, error_message = get_model_summary(model_name)