Update main.py
Browse files
main.py
CHANGED
|
@@ -81,4 +81,18 @@ gr.Interface(
|
|
| 81 |
fn=predict_and_return_image,
|
| 82 |
inputs=[gr.Image(label="Gray Scale Image") , gr.Dropdown(["MODEL_1" , "MODEL_2"])],
|
| 83 |
outputs=[gr.Image(label="Predicted Colored Image")],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
).launch()
|
|
|
|
| 81 |
fn=predict_and_return_image,
|
| 82 |
inputs=[gr.Image(label="Gray Scale Image") , gr.Dropdown(["MODEL_1" , "MODEL_2"])],
|
| 83 |
outputs=[gr.Image(label="Predicted Colored Image")],
|
| 84 |
+
css = '''
|
| 85 |
+
.gradio-container {background-color: #228B22}
|
| 86 |
+
.animate-spin {
|
| 87 |
+
animation: spin 1s linear infinite;
|
| 88 |
+
}
|
| 89 |
+
@keyframes spin {
|
| 90 |
+
from {
|
| 91 |
+
transform: rotate(0deg);
|
| 92 |
+
}
|
| 93 |
+
to {
|
| 94 |
+
transform: rotate(360deg);
|
| 95 |
+
}
|
| 96 |
+
}
|
| 97 |
+
'''
|
| 98 |
).launch()
|