Spaces:
Sleeping
Sleeping
Commit
·
24f4b49
1
Parent(s):
1a23555
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,6 +28,7 @@ def load_sample_image(choice):
|
|
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,8 +58,8 @@ with gr.Blocks() as interface:
|
|
57 |
background-color: black;
|
58 |
color: white; /* Set text color to white */
|
59 |
}
|
60 |
-
.gradio-container
|
61 |
-
color: white
|
62 |
}
|
63 |
</style>
|
64 |
""")
|
|
|
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 |
+
print(sample_choice, upload_image)
|
32 |
if uploaded_image is not None:
|
33 |
image = uploaded_image # Use the uploaded image
|
34 |
else:
|
|
|
58 |
background-color: black;
|
59 |
color: white; /* Set text color to white */
|
60 |
}
|
61 |
+
.gradio-container {
|
62 |
+
color: white; /* Ensure Gradio components also have white text */
|
63 |
}
|
64 |
</style>
|
65 |
""")
|