miaoyibo commited on
Commit
c21c33c
·
1 Parent(s): 38d4b91
kimi_dev/serve/frontend.py CHANGED
@@ -4,7 +4,7 @@ from typing import List, Tuple
4
 
5
  import gradio as gr
6
 
7
- from kimi_vl.serve.utils import convert_asis, convert_mdtext, detect_converted_mark
8
 
9
  ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
10
 
 
4
 
5
  import gradio as gr
6
 
7
+ from kimi_dev.serve.utils import convert_asis, convert_mdtext, detect_converted_mark
8
 
9
  ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
10
 
kimi_dev/serve/templates.py CHANGED
@@ -26,10 +26,6 @@ def show_project_structure(structure, spacing=0) -> str:
26
 
27
  return pp_string
28
 
29
- import os
30
- import json
31
- import subprocess
32
- import ast
33
  def clone_github_repo(github_url, local_path):
34
  """Clone GitHub repository to local path"""
35
  try:
 
26
 
27
  return pp_string
28
 
 
 
 
 
29
  def clone_github_repo(github_url, local_path):
30
  """Clone GitHub repository to local path"""
31
  try:
kimi_dev/serve/utils.py CHANGED
@@ -281,8 +281,8 @@ def parse_ref_bbox(response, image: Image.Image):
281
  text_x = box[0]
282
  text_y = box[1] - 20
283
  text_color = box_color
284
- # font = ImageFont.truetype("kimi_vl/serve/assets/simsun.ttc", size=20)
285
- draw.text((text_x, text_y), label, font=font, fill=text_color)
286
 
287
  return image
288
  except Exception as e:
 
281
  text_x = box[0]
282
  text_y = box[1] - 20
283
  text_color = box_color
284
+
285
+ draw.text((text_x, text_y), label, fill=text_color)
286
 
287
  return image
288
  except Exception as e: