hrmndev commited on
Commit
b97e553
·
verified ·
1 Parent(s): a8c34af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -358,8 +358,8 @@ def generate_dynamic_html(token_sequence, out_info, raw_text):
358
  opacity: 0; animation: tk-{uid} 0.35s ease-out forwards; border-radius: 5px; padding: 2px 7px; margin: 2px 1px; display: inline-block;
359
  font-size: 0.80em; font-weight: 600; font-family: monospace; white-space: nowrap;
360
  }}
361
- .tk-mtp-{uid} {{ background: #e8f5e9; border: 2px solid #76b900; color: #2d4400; }}
362
- .tk-ar-{uid} {{ background: #fff3e0; border: 2px solid #e65100; color: #bf360c; }}
363
  .tk-stat-{uid} {{
364
  opacity: 0; animation: tk-{uid} 0.4s ease-out forwards; background: #f0f9e2; border: 1px solid #a4d422; border-radius: 6px;
365
  padding: 5px 14px; display: inline-block; font-size: 0.82em; color: #3f6200; font-weight: 600;
@@ -499,7 +499,7 @@ def _prepare_image_for_model(pil_img, short_size):
499
 
500
 
501
  # ============================================================
502
- # Spaces GPU Wrapper Decorators
503
  # ============================================================
504
  @spaces.GPU(duration=45)
505
  def _run_image_inference(image_in, categories_list, category_str, model_mode, temp, top_p, top_k, short_size, question_override):
 
358
  opacity: 0; animation: tk-{uid} 0.35s ease-out forwards; border-radius: 5px; padding: 2px 7px; margin: 2px 1px; display: inline-block;
359
  font-size: 0.80em; font-weight: 600; font-family: monospace; white-space: nowrap;
360
  }}
361
+ .tk-mtp-{uid} {{ background: #e8f5e9; border: 2px solid #76b900; color: #000000; }}
362
+ .tk-ar-{uid} {{ background: #fff3e0; border: 2px solid #e65100; color: #000000; }}
363
  .tk-stat-{uid} {{
364
  opacity: 0; animation: tk-{uid} 0.4s ease-out forwards; background: #f0f9e2; border: 1px solid #a4d422; border-radius: 6px;
365
  padding: 5px 14px; display: inline-block; font-size: 0.82em; color: #3f6200; font-weight: 600;
 
499
 
500
 
501
  # ============================================================
502
+ # Spaces GPU Wrapper Decorators
503
  # ============================================================
504
  @spaces.GPU(duration=45)
505
  def _run_image_inference(image_in, categories_list, category_str, model_mode, temp, top_p, top_k, short_size, question_override):