Ziptoze commited on
Commit
fb33390
·
verified ·
1 Parent(s): 7c3e66a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -1
app.py CHANGED
@@ -300,12 +300,41 @@ body, .gradio-container {
300
  .upload-icon,
301
  button[aria-label*="Clear"],
302
  button[aria-label*="Upload"],
 
 
 
303
  .image-frame button,
304
- div[class*="icon"] button {
 
 
 
 
 
 
305
  display: none !important;
306
  opacity: 0 !important;
307
  visibility: hidden !important;
308
  pointer-events: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  }
310
 
311
  /* Force clean image display without backgrounds or filters */
 
300
  .upload-icon,
301
  button[aria-label*="Clear"],
302
  button[aria-label*="Upload"],
303
+ button[aria-label*="Remove"],
304
+ button[aria-label*="Edit"],
305
+ button[aria-label*="Expand"],
306
  .image-frame button,
307
+ div[class*="icon"] button,
308
+ .image-upload-button,
309
+ [class*="upload"] button,
310
+ [class*="clear"] button,
311
+ .icon-wrap button,
312
+ button.icon,
313
+ button[class*="icon"] {
314
  display: none !important;
315
  opacity: 0 !important;
316
  visibility: hidden !important;
317
  pointer-events: none !important;
318
+ width: 0 !important;
319
+ height: 0 !important;
320
+ }
321
+
322
+ /* Hide pseudo-elements that might show icons */
323
+ [data-testid="image"]::before,
324
+ [data-testid="image"]::after,
325
+ .image-container::before,
326
+ .image-container::after,
327
+ .image-frame::before,
328
+ .image-frame::after {
329
+ display: none !important;
330
+ content: none !important;
331
+ }
332
+
333
+ /* Hide absolutely positioned overlays */
334
+ [data-testid="image"] > div[style*="absolute"],
335
+ .image-container > div[style*="absolute"],
336
+ [data-testid="image"] .absolute {
337
+ display: none !important;
338
  }
339
 
340
  /* Force clean image display without backgrounds or filters */