Chris Addis commited on
Commit ·
dfc9f0a
1
Parent(s): 8dec016
add photograph
Browse files- app.py +2 -2
- library/utils_prompt.py +1 -1
app.py
CHANGED
|
@@ -153,7 +153,7 @@ def create_demo():
|
|
| 153 |
content_type = gr.Radio(
|
| 154 |
choices=["Museum Object", "Photography"],
|
| 155 |
label="Content Type",
|
| 156 |
-
value="
|
| 157 |
info="Choose the type of content in your images"
|
| 158 |
)
|
| 159 |
|
|
@@ -217,7 +217,7 @@ def create_demo():
|
|
| 217 |
if not image_paths:
|
| 218 |
return [], [], 0, None, "0 of 0", "No images uploaded to analyze.", None
|
| 219 |
|
| 220 |
-
is_photography = content_type_choice == "
|
| 221 |
sys_prompt = get_sys_prompt(length_choice, photograph=is_photography)
|
| 222 |
image_results = []
|
| 223 |
analysis_progress = gr.Progress(track_tqdm=True)
|
|
|
|
| 153 |
content_type = gr.Radio(
|
| 154 |
choices=["Museum Object", "Photography"],
|
| 155 |
label="Content Type",
|
| 156 |
+
value="Museum Object",
|
| 157 |
info="Choose the type of content in your images"
|
| 158 |
)
|
| 159 |
|
|
|
|
| 217 |
if not image_paths:
|
| 218 |
return [], [], 0, None, "0 of 0", "No images uploaded to analyze.", None
|
| 219 |
|
| 220 |
+
is_photography = content_type_choice == "Photography"
|
| 221 |
sys_prompt = get_sys_prompt(length_choice, photograph=is_photography)
|
| 222 |
image_results = []
|
| 223 |
analysis_progress = gr.Progress(track_tqdm=True)
|
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"{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 alt-text for this image {title_info}:"
|
| 15 |
|
| 16 |
def prompt_1(title=None):
|
| 17 |
if title == None:
|