prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Serving gradio报错
  ![image](https://github.com/InternLM/lmdeploy/assets/6971044/d84724e1-e098-4ad7-9b02-bdc5e0bdeec0)
  
  报错: no module named lmdeploy.serve.gradio
  
  环境里已安装了lmdeploy 0.0.2 python包。
  
  </issue>
  <code>
  [start of lmdeploy/version.py]
  1 # Copyright (c) OpenMMLab. All rights reserved.
  2 from typing import Tuple
  3 
  4 __version__ = '0.0.2'
  5 short_version = __version__
  6 
  7 
  8 def parse_version_info(version_str: str) -> Tuple:
  9     """Parse version from a string.
  10 
  11     Args:
  12         version_str (str): A string represents a version info.
  13 
  14     Returns:
  15         tuple: A sequence of integer and string represents version.
  16     """
  17     _version_info = []
  18     for x in version_str.split('.'):
  19         if x.isdigit():
  20             _version_info.append(int(x))
  21         elif x.find('rc') != -1:
  22             patch_version = x.split('rc')
  23             _version_info.append(int(patch_version[0]))
  24             _version_info.append(f'rc{patch_version[1]}')
  25     return tuple(_version_info)
  26 
  27 
  28 version_info = parse_version_info(__version__)
  29 
  30 __all__ = ['__version__', 'version_info', 'parse_version_info']
  31
  [end of lmdeploy/version.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/lmdeploy/version.py b/lmdeploy/version.py
  --- a/lmdeploy/version.py
  +++ b/lmdeploy/version.py
  @@ -1,7 +1,7 @@
   # Copyright (c) OpenMMLab. All rights reserved.
   from typing import Tuple
   
  -__version__ = '0.0.2'
  +__version__ = '0.0.3'
   short_version = __version__
  
verification_info: {"golden_diff": "diff --git a/lmdeploy/version.py b/lmdeploy/version.py\n--- a/lmdeploy/version.py\n+++ b/lmdeploy/version.py\n@@ -1,7 +1,7 @@\n # Copyright (c) OpenMMLab. All rights reserved.\n from typing import Tuple\n \n-__version__ = '0.0.2'\n+__version__ = '0.0.3'\n short_version = __version__\n", "issue": "Serving gradio\u62a5\u9519\n![image](https://github.com/InternLM/lmdeploy/assets/6971044/d84724e1-e098-4ad7-9b02-bdc5e0bdeec0)\r\n\r\n\u62a5\u9519: no module named lmdeploy.serve.gradio\r\n\r\n\u73af\u5883\u91cc\u5df2\u5b89\u88c5\u4e86lmdeploy 0.0.2 python\u5305\u3002\n", "before_files": [{"content": "# Copyright (c) OpenMMLab. All rights reserved.\nfrom typing import Tuple\n\n__version__ = '0.0.2'\nshort_version = __version__\n\n\ndef parse_version_info(version_str: str) -> Tuple:\n    \"\"\"Parse version from a string.\n\n    Args:\n        version_str (str): A string represents a version info.\n\n    Returns:\n        tuple: A sequence of integer and string represents version.\n    \"\"\"\n    _version_info = []\n    for x in version_str.split('.'):\n        if x.isdigit():\n            _version_info.append(int(x))\n        elif x.find('rc') != -1:\n            patch_version = x.split('rc')\n            _version_info.append(int(patch_version[0]))\n            _version_info.append(f'rc{patch_version[1]}')\n    return tuple(_version_info)\n\n\nversion_info = parse_version_info(__version__)\n\n__all__ = ['__version__', 'version_info', 'parse_version_info']\n", "path": "lmdeploy/version.py"}]}