CCockrum commited on
Commit
d5bf7ec
·
verified ·
1 Parent(s): dafeb6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ if view == "Artwork Explorer":
101
  result = describer(prompt, max_length=100, truncation=True, do_sample=True)[0]["generated_text"]
102
  return result.replace(prompt, "").strip()
103
  else:
104
- prompt_flan = f"Write a short description of this artwork:
105
 
106
  {prompt}"
107
  result = describer(prompt_flan, max_length=100, truncation=True)[0]["generated_text"]
 
101
  result = describer(prompt, max_length=100, truncation=True, do_sample=True)[0]["generated_text"]
102
  return result.replace(prompt, "").strip()
103
  else:
104
+ prompt_flan = f"Write a short description of this artwork:"
105
 
106
  {prompt}"
107
  result = describer(prompt_flan, max_length=100, truncation=True)[0]["generated_text"]