FengHou97 commited on
Commit
2eebe2b
·
verified ·
1 Parent(s): d625127

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,8 +36,9 @@ images="festival.jpg"
36
  def shot(image, labels_text, model_name, hypothesis_template_prefix, hypothesis_template_suffix, domains_text):
37
  labels = [label.strip(" ") for label in labels_text.strip(" ").split(",")]
38
  domains = [domain.strip(" ") for domain in domains_text.strip(" ").split(",")]
39
- hypothesis_template_suffix.format(domains)
40
  hypothesis_template = hypothesis_template_prefix + ' ' + hypothesis_template_suffix
 
41
 
42
  res = pipes[model_name](images=image,
43
  candidate_labels=labels,
 
36
  def shot(image, labels_text, model_name, hypothesis_template_prefix, hypothesis_template_suffix, domains_text):
37
  labels = [label.strip(" ") for label in labels_text.strip(" ").split(",")]
38
  domains = [domain.strip(" ") for domain in domains_text.strip(" ").split(",")]
39
+ hypothesis_template_suffix.format(*domains)
40
  hypothesis_template = hypothesis_template_prefix + ' ' + hypothesis_template_suffix
41
+ prin(hypothesis_template)
42
 
43
  res = pipes[model_name](images=image,
44
  candidate_labels=labels,