liudongqing commited on
Commit
28092bb
·
1 Parent(s): 4d30ab9

adjust prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def score_it(input_img):
29
  # Now use the PIL Image as before
30
  image = pil_image.convert("RGB").resize((224, 224))
31
 
32
- prompt = "<|begin_of_text|><|image|this script says"
33
  inputs = processor(image, prompt, return_tensors="pt").to(model.device)
34
 
35
  output = model.generate(**inputs, max_new_tokens=200)
 
29
  # Now use the PIL Image as before
30
  image = pil_image.convert("RGB").resize((224, 224))
31
 
32
+ prompt = "<|begin_of_text|><|image|>this script says"
33
  inputs = processor(image, prompt, return_tensors="pt").to(model.device)
34
 
35
  output = model.generate(**inputs, max_new_tokens=200)