BabyChou commited on
Commit
127f0a0
1 Parent(s): 30d21de

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -26,7 +26,9 @@ Yi-VL adopts the [LLaVA](https://github.com/haotian-liu/LLaVA) architecture, whi
26
 
27
  This has been implemented into the SGLang codebase, where you can simply call this model by creating a function like so:
28
  ```
29
- sgl.function
 
 
30
  def image_qa(s, image_path, question):
31
  s += sgl.user(sgl.image(image_path) + question)
32
  s += sgl.assistant(sgl.gen("answer"))
 
26
 
27
  This has been implemented into the SGLang codebase, where you can simply call this model by creating a function like so:
28
  ```
29
+ import sglang as sgl
30
+
31
+ @sgl.function
32
  def image_qa(s, image_path, question):
33
  s += sgl.user(sgl.image(image_path) + question)
34
  s += sgl.assistant(sgl.gen("answer"))