yangapku commited on
Commit
de2e2ab
1 Parent(s): 5119d09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def shot(image, labels_text):
18
  labels = labels_text.split(",")
19
  res = pipes['chinese-clip-vit-base-patch16'](images=PIL_image,
20
  candidate_labels=labels,
21
- hypothesis_template= "{}")
22
  return {dic["label"]: dic["score"] for dic in res}
23
 
24
  iface = gr.Interface(shot,
 
18
  labels = labels_text.split(",")
19
  res = pipes['chinese-clip-vit-base-patch16'](images=PIL_image,
20
  candidate_labels=labels,
21
+ hypothesis_template= "一张{}的图片。")
22
  return {dic["label"]: dic["score"] for dic in res}
23
 
24
  iface = gr.Interface(shot,