cvips commited on
Commit
535d21c
·
1 Parent(s): 013d2dd

front end updated

Browse files
Files changed (1) hide show
  1. app.py +1 -79
app.py CHANGED
@@ -204,86 +204,8 @@ def process_image(image_path, text_prompts, modality):
204
 
205
  return results, p_values
206
 
207
- # Add custom CSS for dark theme
208
- CUSTOM_CSS = """
209
- :root {
210
- --background-fill-primary: #1F1F1F;
211
- --background-fill-secondary: #2B2B2B;
212
- --border-color-primary: #424242;
213
- --text-color: #FFFFFF;
214
- --color-accent-soft: #2C2C2C;
215
- }
216
-
217
- .gradio-container {
218
- background-color: #1F1F1F !important;
219
- color: #FFFFFF !important;
220
- }
221
-
222
- .gr-button {
223
- background-color: #424242 !important;
224
- color: #FFFFFF !important;
225
- }
226
-
227
- .gr-input, .gr-dropdown {
228
- background-color: #2B2B2B !important;
229
- color: #FFFFFF !important;
230
- border-color: #424242 !important;
231
- }
232
-
233
- .gr-form {
234
- background-color: #2B2B2B !important;
235
- border-color: #424242 !important;
236
- }
237
-
238
- .gr-box {
239
- background-color: #2B2B2B !important;
240
- border-color: #424242 !important;
241
- }
242
-
243
- /* Additional text color rules */
244
- .gr-text-input, .gr-text-input::placeholder {
245
- color: #FFFFFF !important;
246
- }
247
-
248
- .gr-dropdown span {
249
- color: #FFFFFF !important;
250
- }
251
-
252
- .gr-label {
253
- color: #FFFFFF !important;
254
- }
255
-
256
- .gr-button-secondary {
257
- color: #FFFFFF !important;
258
- }
259
-
260
- .gr-panel {
261
- background-color: #2B2B2B !important;
262
- color: #FFFFFF !important;
263
- }
264
-
265
- .gr-box label {
266
- color: #FFFFFF !important;
267
- }
268
-
269
- /* Gallery labels */
270
- .gr-gallery-item div {
271
- color: #FFFFFF !important;
272
- }
273
-
274
- /* Output text */
275
- .output-text, .output-markdown {
276
- color: #FFFFFF !important;
277
- }
278
- """
279
-
280
  # Define Gradio interface
281
- with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Soft(
282
- primary_hue="gray",
283
- secondary_hue="gray",
284
- neutral_hue="gray",
285
- text_size="lg"
286
- )) as demo:
287
  gr.HTML(MARKDOWN)
288
  with gr.Row():
289
  with gr.Column():
 
204
 
205
  return results, p_values
206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  # Define Gradio interface
208
+ with gr.Blocks() as demo:
 
 
 
 
 
209
  gr.HTML(MARKDOWN)
210
  with gr.Row():
211
  with gr.Column():