Chris Addis commited on
Commit
6e284a0
·
1 Parent(s): dfc9f0a

add photograph

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. library/utils_prompt.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def get_sys_prompt(length="medium", photograph=False):
43
  else:
44
  object_type = "museum objects"
45
 
46
- dev_prompt = """You are a museum curator tasked with generating alt-text (as defined by W3C) of {object_type} for visually impaired and blind users from images. Use British English and follow museum accessibility best practices. Do not start with phrases like 'The image shows' or 'This is an image of'. Be precise, concise and avoid filler and subjective statements."""
47
 
48
  if length == "short":
49
  dev_prompt += " Repsonses should be a maximum of 130 characters."
 
43
  else:
44
  object_type = "museum objects"
45
 
46
+ dev_prompt = """You are a museum curator tasked with generating alternative text (as defined by W3C) of {object_type} for visually impaired and blind users from images. Use British English and follow museum accessibility best practices. Do not start with phrases like 'The image shows' or 'This is an image of'. Be precise, concise and avoid filler and subjective statements."""
47
 
48
  if length == "short":
49
  dev_prompt += " Repsonses should be a maximum of 130 characters."
library/utils_prompt.py CHANGED
@@ -11,7 +11,7 @@ def prompt_new(title=None):
11
  title_info = {}
12
  else:
13
  title_info = f"(titled: {title})"
14
- return f"Return alt-text for this image {title_info}:"
15
 
16
  def prompt_1(title=None):
17
  if title == None:
 
11
  title_info = {}
12
  else:
13
  title_info = f"(titled: {title})"
14
+ return f"Return alternative text for this image {title_info}:"
15
 
16
  def prompt_1(title=None):
17
  if title == None: