diff --git a/extensions/multimodal/README.md b/extensions/multimodal/README.md index d462d435..87183587 100644 --- a/extensions/multimodal/README.md +++ b/extensions/multimodal/README.md @@ -80,7 +80,7 @@ CONTEXT = "You are LLaVA, a large language and vision assistant trained by UW Ma with open('extreme_ironing.jpg', 'rb') as f: img_str = base64.b64encode(f.read()).decode('utf-8') prompt = CONTEXT + f'### Human: What is unusual about this image: \n### Assistant: ' - print(requests.post('http://127.0.0.1:5000/api/v1/generate', json={'prompt': prompt, 'stopping_strings': ['\n###']}).json()) + print(requests.post('http://127.0.0.1:5000/v1/completions', json={'prompt': prompt, 'max_tokens': 200, 'stop': ['\n###']}).json()) ``` script output: ```Python