Update app.py
Browse files
app.py
CHANGED
@@ -115,30 +115,30 @@ custom_css = """
|
|
115 |
color: #333333;
|
116 |
font-weight: bold;
|
117 |
font-size: 24px;
|
118 |
-
margin-bottom: 10px
|
119 |
}
|
120 |
.gradio-description {
|
121 |
color: #666666;
|
122 |
font-size: 16px;
|
123 |
-
margin-bottom: 20px
|
124 |
}
|
125 |
.gradio-image {
|
126 |
-
border-radius: 10px
|
127 |
}
|
128 |
.gradio-button {
|
129 |
background-color: #007bff;
|
130 |
color: #ffffff;
|
131 |
border: none;
|
132 |
-
padding: 10px 20px
|
133 |
-
border-radius: 5px
|
134 |
-
cursor: pointer
|
135 |
}
|
136 |
.gradio-button:hover {
|
137 |
-
background-color: #0056b3
|
138 |
}
|
139 |
.gradio-label {
|
140 |
-
color: #007bff
|
141 |
-
font-weight: bold
|
142 |
}
|
143 |
</style>
|
144 |
"""
|
@@ -160,7 +160,7 @@ prediction_interface = gr.Interface(
|
|
160 |
visualization_interface = gr.Interface(
|
161 |
fn=display_visualizations,
|
162 |
inputs=None,
|
163 |
-
outputs=[gr.Image(label=f"Visualization {i+1}") for i in range(len(visualization_images))],
|
164 |
title="Model Performance Visualizations",
|
165 |
description=f"""
|
166 |
Here are some visualizations that depict the performance of the model during training and testing.
|
|
|
115 |
color: #333333;
|
116 |
font-weight: bold;
|
117 |
font-size: 24px;
|
118 |
+
margin-bottom: 10px;
|
119 |
}
|
120 |
.gradio-description {
|
121 |
color: #666666;
|
122 |
font-size: 16px;
|
123 |
+
margin-bottom: 20px;
|
124 |
}
|
125 |
.gradio-image {
|
126 |
+
border-radius: 10px;
|
127 |
}
|
128 |
.gradio-button {
|
129 |
background-color: #007bff;
|
130 |
color: #ffffff;
|
131 |
border: none;
|
132 |
+
padding: 10px 20px;
|
133 |
+
border-radius: 5px;
|
134 |
+
cursor: pointer;
|
135 |
}
|
136 |
.gradio-button:hover {
|
137 |
+
background-color: #0056b3;
|
138 |
}
|
139 |
.gradio-label {
|
140 |
+
color: #007bff;
|
141 |
+
font-weight: bold;
|
142 |
}
|
143 |
</style>
|
144 |
"""
|
|
|
160 |
visualization_interface = gr.Interface(
|
161 |
fn=display_visualizations,
|
162 |
inputs=None,
|
163 |
+
outputs=[gr.Image(type="pil", label=f"Visualization {i+1}") for i in range(len(visualization_images))],
|
164 |
title="Model Performance Visualizations",
|
165 |
description=f"""
|
166 |
Here are some visualizations that depict the performance of the model during training and testing.
|