Spaces:
Paused
Paused
Update app.py
Browse filesadd elem_classes properties for styling.
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)
|