MCPcopy
hub / github.com/ttengwang/Caption-Anything / parse

Method parse

caption_anything/text_refiner/text_refiner.py:29–31  ·  view source on GitHub ↗
(self, response)

Source from the content-addressed store, hash-verified

27 self.control_prompts = "As a text reviser, you will convert an image description into a new sentence or long paragraph. The new text is {prompts}. {long_prompts} The sentence is \"{query}\" (give me the revised sentence only)"
28
29 def parse(self, response):
30 out = response.strip()
31 return out
32
33 def parse2(self, response):
34 out = response.strip()

Callers 3

inferenceMethod · 0.95
get_styleFunction · 0.80
get_styleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected