FengHou97 commited on
Commit
d625127
·
verified ·
1 Parent(s): 4ebfb1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ 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(for domain in domains)
40
  hypothesis_template = hypothesis_template_prefix + ' ' + hypothesis_template_suffix
41
 
42
  res = pipes[model_name](images=image,
 
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,