Chris Addis commited on
Commit ·
8dec016
1
Parent(s): 997297a
add photograph
Browse files- app.py +4 -4
- library/utils_prompt.py +1 -1
app.py
CHANGED
|
@@ -134,9 +134,9 @@ def create_demo():
|
|
| 134 |
("GPT-4.1", "gpt-4.1"), ("ChatGPT Latest", "openai/chatgpt-4o-latest"),
|
| 135 |
("Claude 3.7 Sonnet", "anthropic/claude-3.7-sonnet"),
|
| 136 |
("Llama 4 Maverick", "meta-llama/llama-4-maverick"),
|
| 137 |
-
("Gemini 2.5 Pro
|
| 138 |
-
("Gemini 2.0 Flash Thinking
|
| 139 |
-
("Gemini 2.5 Flash Thinking
|
| 140 |
]
|
| 141 |
default_model_internal_value = "google/gemini-2.0-flash-001"
|
| 142 |
model_choice = gr.Dropdown(
|
|
@@ -151,7 +151,7 @@ def create_demo():
|
|
| 151 |
# Advanced settings accordion
|
| 152 |
with gr.Accordion("Advanced Settings", open=False):
|
| 153 |
content_type = gr.Radio(
|
| 154 |
-
choices=["
|
| 155 |
label="Content Type",
|
| 156 |
value="museum objects",
|
| 157 |
info="Choose the type of content in your images"
|
|
|
|
| 134 |
("GPT-4.1", "gpt-4.1"), ("ChatGPT Latest", "openai/chatgpt-4o-latest"),
|
| 135 |
("Claude 3.7 Sonnet", "anthropic/claude-3.7-sonnet"),
|
| 136 |
("Llama 4 Maverick", "meta-llama/llama-4-maverick"),
|
| 137 |
+
("Gemini 2.5 Pro", "gemini-2.5-pro-exp-03-25"),
|
| 138 |
+
("Gemini 2.0 Flash Thinking", "gemini-2.0-flash-thinking-exp-01-21"),
|
| 139 |
+
("Gemini 2.5 Flash Thinking", "google/gemini-2.5-flash-preview:thinking")
|
| 140 |
]
|
| 141 |
default_model_internal_value = "google/gemini-2.0-flash-001"
|
| 142 |
model_choice = gr.Dropdown(
|
|
|
|
| 151 |
# Advanced settings accordion
|
| 152 |
with gr.Accordion("Advanced Settings", open=False):
|
| 153 |
content_type = gr.Radio(
|
| 154 |
+
choices=["Museum Object", "Photography"],
|
| 155 |
label="Content Type",
|
| 156 |
value="museum objects",
|
| 157 |
info="Choose the type of content in your images"
|
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"
|
| 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"{title_info}:"
|
| 15 |
|
| 16 |
def prompt_1(title=None):
|
| 17 |
if title == None:
|