Skip to content

Commit

Permalink
remove unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
larme committed Feb 8, 2024
1 parent e8f04e2 commit e6794e0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions service.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@ async def generate(self, img: Image, txt: t.Optional[str] = None) -> str:

out = self.model.generate(**inputs, max_new_tokens=100, min_new_tokens=20)
return self.processor.decode(out[0], skip_special_tokens=True)

if __name__ == "__main__":
BlipImageCaptioning.serve_http()

0 comments on commit e6794e0

Please sign in to comment.