Chris Addis commited on
Commit ·
d224ea0
1
Parent(s): 754338e
add photograph
Browse files
app.py
CHANGED
|
@@ -38,8 +38,11 @@ os.makedirs(os.path.dirname(PREFERENCES_FILE), exist_ok=True)
|
|
| 38 |
|
| 39 |
def get_sys_prompt(length="medium", photograph=False):
|
| 40 |
|
|
|
|
|
|
|
| 41 |
if photograph:
|
| 42 |
object_type = "wildlife photography"
|
|
|
|
| 43 |
else:
|
| 44 |
object_type = "museum objects"
|
| 45 |
|
|
@@ -51,7 +54,7 @@ def get_sys_prompt(length="medium", photograph=False):
|
|
| 51 |
dev_prompt += " Repsonses should be a maximum of 250-300 characters."
|
| 52 |
else: # long
|
| 53 |
dev_prompt += " Repsonses should be a maximum of 450 characters."
|
| 54 |
-
return dev_prompt
|
| 55 |
|
| 56 |
|
| 57 |
def create_csv_file_simple(results):
|
|
|
|
| 38 |
|
| 39 |
def get_sys_prompt(length="medium", photograph=False):
|
| 40 |
|
| 41 |
+
extra_prompt = ""
|
| 42 |
+
|
| 43 |
if photograph:
|
| 44 |
object_type = "wildlife photography"
|
| 45 |
+
extra_prompt = "Do not guess the exact species of the animals in the photograph - simply use a broader grouping to make less errors.
|
| 46 |
else:
|
| 47 |
object_type = "museum objects"
|
| 48 |
|
|
|
|
| 54 |
dev_prompt += " Repsonses should be a maximum of 250-300 characters."
|
| 55 |
else: # long
|
| 56 |
dev_prompt += " Repsonses should be a maximum of 450 characters."
|
| 57 |
+
return dev_prompt + extra_prompt
|
| 58 |
|
| 59 |
|
| 60 |
def create_csv_file_simple(results):
|