Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- gradio_app.py +58 -8
gradio_app.py
CHANGED
|
@@ -905,11 +905,13 @@ def create_gradio_interface():
|
|
| 905 |
background: #ffffff !important;
|
| 906 |
}
|
| 907 |
|
| 908 |
-
/* Dark mode dropdown styling */
|
| 909 |
@media (prefers-color-scheme: dark) {
|
| 910 |
[data-testid="dropdown"] div[role="listbox"],
|
| 911 |
.dropdown-menu,
|
| 912 |
-
div[role="listbox"]
|
|
|
|
|
|
|
| 913 |
background: #2a2a2a !important;
|
| 914 |
background-color: #2a2a2a !important;
|
| 915 |
border: 2px solid #404040 !important;
|
|
@@ -917,7 +919,11 @@ def create_gradio_interface():
|
|
| 917 |
|
| 918 |
[data-testid="dropdown"] div[role="listbox"] > *,
|
| 919 |
.dropdown-menu > *,
|
| 920 |
-
div[role="listbox"] >
|
|
|
|
|
|
|
|
|
|
|
|
|
| 921 |
background: #2a2a2a !important;
|
| 922 |
background-color: #2a2a2a !important;
|
| 923 |
color: #e5e5e5 !important;
|
|
@@ -925,7 +931,11 @@ def create_gradio_interface():
|
|
| 925 |
|
| 926 |
[data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 927 |
.dropdown-menu > *:hover,
|
| 928 |
-
div[role="listbox"] > *:hover
|
|
|
|
|
|
|
|
|
|
|
|
|
| 929 |
background: #404040 !important;
|
| 930 |
color: #ffffff !important;
|
| 931 |
}
|
|
@@ -935,19 +945,27 @@ def create_gradio_interface():
|
|
| 935 |
}
|
| 936 |
}
|
| 937 |
|
| 938 |
-
/* Gradio dark mode dropdown styling */
|
| 939 |
.dark [data-testid="dropdown"] div[role="listbox"],
|
| 940 |
.dark .dropdown-menu,
|
| 941 |
.dark div[role="listbox"],
|
|
|
|
|
|
|
| 942 |
.gradio-container.dark [data-testid="dropdown"] div[role="listbox"],
|
| 943 |
.gradio-container.dark .dropdown-menu,
|
| 944 |
.gradio-container.dark div[role="listbox"],
|
|
|
|
|
|
|
| 945 |
html.dark [data-testid="dropdown"] div[role="listbox"],
|
| 946 |
html.dark .dropdown-menu,
|
| 947 |
html.dark div[role="listbox"],
|
|
|
|
|
|
|
| 948 |
body.dark [data-testid="dropdown"] div[role="listbox"],
|
| 949 |
body.dark .dropdown-menu,
|
| 950 |
-
body.dark div[role="listbox"]
|
|
|
|
|
|
|
| 951 |
background: #2a2a2a !important;
|
| 952 |
background-color: #2a2a2a !important;
|
| 953 |
border: 2px solid #404040 !important;
|
|
@@ -956,15 +974,31 @@ def create_gradio_interface():
|
|
| 956 |
.dark [data-testid="dropdown"] div[role="listbox"] > *,
|
| 957 |
.dark .dropdown-menu > *,
|
| 958 |
.dark div[role="listbox"] > *,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 959 |
.gradio-container.dark [data-testid="dropdown"] div[role="listbox"] > *,
|
| 960 |
.gradio-container.dark .dropdown-menu > *,
|
| 961 |
.gradio-container.dark div[role="listbox"] > *,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 962 |
html.dark [data-testid="dropdown"] div[role="listbox"] > *,
|
| 963 |
html.dark .dropdown-menu > *,
|
| 964 |
html.dark div[role="listbox"] > *,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 965 |
body.dark [data-testid="dropdown"] div[role="listbox"] > *,
|
| 966 |
body.dark .dropdown-menu > *,
|
| 967 |
-
body.dark div[role="listbox"] >
|
|
|
|
|
|
|
|
|
|
|
|
|
| 968 |
background: #2a2a2a !important;
|
| 969 |
background-color: #2a2a2a !important;
|
| 970 |
color: #e5e5e5 !important;
|
|
@@ -973,15 +1007,31 @@ def create_gradio_interface():
|
|
| 973 |
.dark [data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 974 |
.dark .dropdown-menu > *:hover,
|
| 975 |
.dark div[role="listbox"] > *:hover,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 976 |
.gradio-container.dark [data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 977 |
.gradio-container.dark .dropdown-menu > *:hover,
|
| 978 |
.gradio-container.dark div[role="listbox"] > *:hover,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 979 |
html.dark [data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 980 |
html.dark .dropdown-menu > *:hover,
|
| 981 |
html.dark div[role="listbox"] > *:hover,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 982 |
body.dark [data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 983 |
body.dark .dropdown-menu > *:hover,
|
| 984 |
-
body.dark div[role="listbox"] > *:hover
|
|
|
|
|
|
|
|
|
|
|
|
|
| 985 |
background: #404040 !important;
|
| 986 |
color: #ffffff !important;
|
| 987 |
}
|
|
|
|
| 905 |
background: #ffffff !important;
|
| 906 |
}
|
| 907 |
|
| 908 |
+
/* Dark mode dropdown styling - enhanced for dropdown items */
|
| 909 |
@media (prefers-color-scheme: dark) {
|
| 910 |
[data-testid="dropdown"] div[role="listbox"],
|
| 911 |
.dropdown-menu,
|
| 912 |
+
div[role="listbox"],
|
| 913 |
+
div[id*="dropdown-options"],
|
| 914 |
+
div[aria-labelledby*="dropdown"] {
|
| 915 |
background: #2a2a2a !important;
|
| 916 |
background-color: #2a2a2a !important;
|
| 917 |
border: 2px solid #404040 !important;
|
|
|
|
| 919 |
|
| 920 |
[data-testid="dropdown"] div[role="listbox"] > *,
|
| 921 |
.dropdown-menu > *,
|
| 922 |
+
div[role="listbox"] > *,
|
| 923 |
+
div[id*="dropdown-options"] > *,
|
| 924 |
+
div[aria-labelledby*="dropdown"] > *,
|
| 925 |
+
div[role="option"],
|
| 926 |
+
[role="option"] {
|
| 927 |
background: #2a2a2a !important;
|
| 928 |
background-color: #2a2a2a !important;
|
| 929 |
color: #e5e5e5 !important;
|
|
|
|
| 931 |
|
| 932 |
[data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 933 |
.dropdown-menu > *:hover,
|
| 934 |
+
div[role="listbox"] > *:hover,
|
| 935 |
+
div[id*="dropdown-options"] > *:hover,
|
| 936 |
+
div[aria-labelledby*="dropdown"] > *:hover,
|
| 937 |
+
div[role="option"]:hover,
|
| 938 |
+
[role="option"]:hover {
|
| 939 |
background: #404040 !important;
|
| 940 |
color: #ffffff !important;
|
| 941 |
}
|
|
|
|
| 945 |
}
|
| 946 |
}
|
| 947 |
|
| 948 |
+
/* Gradio dark mode dropdown styling - enhanced for dropdown items */
|
| 949 |
.dark [data-testid="dropdown"] div[role="listbox"],
|
| 950 |
.dark .dropdown-menu,
|
| 951 |
.dark div[role="listbox"],
|
| 952 |
+
.dark div[id*="dropdown-options"],
|
| 953 |
+
.dark div[aria-labelledby*="dropdown"],
|
| 954 |
.gradio-container.dark [data-testid="dropdown"] div[role="listbox"],
|
| 955 |
.gradio-container.dark .dropdown-menu,
|
| 956 |
.gradio-container.dark div[role="listbox"],
|
| 957 |
+
.gradio-container.dark div[id*="dropdown-options"],
|
| 958 |
+
.gradio-container.dark div[aria-labelledby*="dropdown"],
|
| 959 |
html.dark [data-testid="dropdown"] div[role="listbox"],
|
| 960 |
html.dark .dropdown-menu,
|
| 961 |
html.dark div[role="listbox"],
|
| 962 |
+
html.dark div[id*="dropdown-options"],
|
| 963 |
+
html.dark div[aria-labelledby*="dropdown"],
|
| 964 |
body.dark [data-testid="dropdown"] div[role="listbox"],
|
| 965 |
body.dark .dropdown-menu,
|
| 966 |
+
body.dark div[role="listbox"],
|
| 967 |
+
body.dark div[id*="dropdown-options"],
|
| 968 |
+
body.dark div[aria-labelledby*="dropdown"] {
|
| 969 |
background: #2a2a2a !important;
|
| 970 |
background-color: #2a2a2a !important;
|
| 971 |
border: 2px solid #404040 !important;
|
|
|
|
| 974 |
.dark [data-testid="dropdown"] div[role="listbox"] > *,
|
| 975 |
.dark .dropdown-menu > *,
|
| 976 |
.dark div[role="listbox"] > *,
|
| 977 |
+
.dark div[id*="dropdown-options"] > *,
|
| 978 |
+
.dark div[aria-labelledby*="dropdown"] > *,
|
| 979 |
+
.dark div[role="option"],
|
| 980 |
+
.dark [role="option"],
|
| 981 |
.gradio-container.dark [data-testid="dropdown"] div[role="listbox"] > *,
|
| 982 |
.gradio-container.dark .dropdown-menu > *,
|
| 983 |
.gradio-container.dark div[role="listbox"] > *,
|
| 984 |
+
.gradio-container.dark div[id*="dropdown-options"] > *,
|
| 985 |
+
.gradio-container.dark div[aria-labelledby*="dropdown"] > *,
|
| 986 |
+
.gradio-container.dark div[role="option"],
|
| 987 |
+
.gradio-container.dark [role="option"],
|
| 988 |
html.dark [data-testid="dropdown"] div[role="listbox"] > *,
|
| 989 |
html.dark .dropdown-menu > *,
|
| 990 |
html.dark div[role="listbox"] > *,
|
| 991 |
+
html.dark div[id*="dropdown-options"] > *,
|
| 992 |
+
html.dark div[aria-labelledby*="dropdown"] > *,
|
| 993 |
+
html.dark div[role="option"],
|
| 994 |
+
html.dark [role="option"],
|
| 995 |
body.dark [data-testid="dropdown"] div[role="listbox"] > *,
|
| 996 |
body.dark .dropdown-menu > *,
|
| 997 |
+
body.dark div[role="listbox"] > *,
|
| 998 |
+
body.dark div[id*="dropdown-options"] > *,
|
| 999 |
+
body.dark div[aria-labelledby*="dropdown"] > *,
|
| 1000 |
+
body.dark div[role="option"],
|
| 1001 |
+
body.dark [role="option"] {
|
| 1002 |
background: #2a2a2a !important;
|
| 1003 |
background-color: #2a2a2a !important;
|
| 1004 |
color: #e5e5e5 !important;
|
|
|
|
| 1007 |
.dark [data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 1008 |
.dark .dropdown-menu > *:hover,
|
| 1009 |
.dark div[role="listbox"] > *:hover,
|
| 1010 |
+
.dark div[id*="dropdown-options"] > *:hover,
|
| 1011 |
+
.dark div[aria-labelledby*="dropdown"] > *:hover,
|
| 1012 |
+
.dark div[role="option"]:hover,
|
| 1013 |
+
.dark [role="option"]:hover,
|
| 1014 |
.gradio-container.dark [data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 1015 |
.gradio-container.dark .dropdown-menu > *:hover,
|
| 1016 |
.gradio-container.dark div[role="listbox"] > *:hover,
|
| 1017 |
+
.gradio-container.dark div[id*="dropdown-options"] > *:hover,
|
| 1018 |
+
.gradio-container.dark div[aria-labelledby*="dropdown"] > *:hover,
|
| 1019 |
+
.gradio-container.dark div[role="option"]:hover,
|
| 1020 |
+
.gradio-container.dark [role="option"]:hover,
|
| 1021 |
html.dark [data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 1022 |
html.dark .dropdown-menu > *:hover,
|
| 1023 |
html.dark div[role="listbox"] > *:hover,
|
| 1024 |
+
html.dark div[id*="dropdown-options"] > *:hover,
|
| 1025 |
+
html.dark div[aria-labelledby*="dropdown"] > *:hover,
|
| 1026 |
+
html.dark div[role="option"]:hover,
|
| 1027 |
+
html.dark [role="option"]:hover,
|
| 1028 |
body.dark [data-testid="dropdown"] div[role="listbox"] > *:hover,
|
| 1029 |
body.dark .dropdown-menu > *:hover,
|
| 1030 |
+
body.dark div[role="listbox"] > *:hover,
|
| 1031 |
+
body.dark div[id*="dropdown-options"] > *:hover,
|
| 1032 |
+
body.dark div[aria-labelledby*="dropdown"] > *:hover,
|
| 1033 |
+
body.dark div[role="option"]:hover,
|
| 1034 |
+
body.dark [role="option"]:hover {
|
| 1035 |
background: #404040 !important;
|
| 1036 |
color: #ffffff !important;
|
| 1037 |
}
|