Update app.py
Browse files
app.py
CHANGED
@@ -40,13 +40,20 @@ def classify_image(image):
|
|
40 |
title = "Classification Demo"
|
41 |
description = "XRay classification"
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
# Create Gradio interface
|
44 |
iface = gr.Interface(fn=classify_image,
|
45 |
inputs=gr.Image(), # Accepts image of any size
|
46 |
outputs=gr.Label(),
|
47 |
title=title,
|
48 |
description=description,
|
49 |
-
css=
|
|
|
50 |
|
51 |
# Launch the app
|
52 |
-
iface.launch()
|
|
|
40 |
title = "Classification Demo"
|
41 |
description = "XRay classification"
|
42 |
|
43 |
+
css_code = """
|
44 |
+
.gradio-container {
|
45 |
+
background-color: lightblue; /* Change to your desired color */
|
46 |
+
}
|
47 |
+
"""
|
48 |
+
|
49 |
# Create Gradio interface
|
50 |
iface = gr.Interface(fn=classify_image,
|
51 |
inputs=gr.Image(), # Accepts image of any size
|
52 |
outputs=gr.Label(),
|
53 |
title=title,
|
54 |
description=description,
|
55 |
+
css=css_code
|
56 |
+
)
|
57 |
|
58 |
# Launch the app
|
59 |
+
iface.launch()
|