Skip to content

Commit

Permalink
adjust oshi_no_ko
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Jun 23, 2023
1 parent 37e39e3 commit 9bcb749
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meme_generator/memes/oshi_no_ko/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

from pil_utils import BuildImage, Text2Image

from meme_generator import MemeArgsModel, add_meme
from meme_generator import add_meme
from meme_generator.exception import TextOverLength
from meme_generator.utils import make_png_or_gif

img_dir = Path(__file__).parent / "images"


def oshi_no_ko(images: List[BuildImage], texts: List[str], args: MemeArgsModel):
name = texts[0] if texts else args.user_infos[0].name if args.user_infos else "网友"
def oshi_no_ko(images: List[BuildImage], texts: List[str], args):
name = texts[0] if texts else "网友"

text_frame1 = BuildImage.open(img_dir / "text1.png")
text_frame2 = BuildImage.open(img_dir / "text2.png")
Expand Down

0 comments on commit 9bcb749

Please sign in to comment.