Spaces:
Sleeping
Sleeping
Commit
·
1a23555
1
Parent(s):
bd99284
Update: font styling
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import gradio as gr
|
|
| 7 |
from yolov5 import xai_yolov5
|
| 8 |
from yolov8 import xai_yolov8s
|
| 9 |
|
| 10 |
-
sample_images = {
|
| 11 |
"Sample 1": os.path.join(os.getcwd(), "data/xai/sample1.jpeg"),
|
| 12 |
"Sample 2": os.path.join(os.getcwd(), "data/xai/sample2.jpg"),
|
| 13 |
}
|
|
@@ -28,7 +28,6 @@ def load_sample_image(choice):
|
|
| 28 |
|
| 29 |
|
| 30 |
def process_image(sample_choice, uploaded_image, yolo_versions=["yolov5"]):
|
| 31 |
-
print(sample_choice, upload_image)
|
| 32 |
if uploaded_image is not None:
|
| 33 |
image = uploaded_image # Use the uploaded image
|
| 34 |
else:
|
|
@@ -58,8 +57,8 @@ with gr.Blocks() as interface:
|
|
| 58 |
background-color: black;
|
| 59 |
color: white; /* Set text color to white */
|
| 60 |
}
|
| 61 |
-
.gradio-container {
|
| 62 |
-
color: white; /* Ensure
|
| 63 |
}
|
| 64 |
</style>
|
| 65 |
""")
|
|
|
|
| 7 |
from yolov5 import xai_yolov5
|
| 8 |
from yolov8 import xai_yolov8s
|
| 9 |
|
| 10 |
+
sample_images = {
|
| 11 |
"Sample 1": os.path.join(os.getcwd(), "data/xai/sample1.jpeg"),
|
| 12 |
"Sample 2": os.path.join(os.getcwd(), "data/xai/sample2.jpg"),
|
| 13 |
}
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
def process_image(sample_choice, uploaded_image, yolo_versions=["yolov5"]):
|
|
|
|
| 31 |
if uploaded_image is not None:
|
| 32 |
image = uploaded_image # Use the uploaded image
|
| 33 |
else:
|
|
|
|
| 57 |
background-color: black;
|
| 58 |
color: white; /* Set text color to white */
|
| 59 |
}
|
| 60 |
+
.gradio-container, h1, h2, h3, h4, h5, h6, label, p, div {
|
| 61 |
+
color: white !important; /* Ensure all text elements are white */
|
| 62 |
}
|
| 63 |
</style>
|
| 64 |
""")
|