Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ def generate_transformed_output(prompt, gender_option, top_cat, sub_cat, species
|
|
135 |
|
136 |
system_prompt = f"""
|
137 |
You are a creative assistant that transforms the user's base prompt
|
138 |
-
|
139 |
1) Detailed Transform Rules (transform_rules.json):
|
140 |
{RULES_TEXT_FULL}
|
141 |
2) Additional short gender rules (gender_rules.json):
|
@@ -177,7 +177,7 @@ def translate_text(content, lang, api_mode, api_key):
|
|
177 |
|
178 |
if api_mode == "GPT":
|
179 |
base_url = None
|
180 |
-
model_name = "gpt-
|
181 |
else:
|
182 |
base_url = "https://api.deepseek.com"
|
183 |
model_name = "deepseek-chat"
|
|
|
135 |
|
136 |
system_prompt = f"""
|
137 |
You are a creative assistant that transforms the user's base prompt
|
138 |
+
生成将提示词中的主体转化为{gender_specific_rule}的提示词,注意性别,其服装和装饰细节,皮肤和第二性征的转变,并且 Follow references below:
|
139 |
1) Detailed Transform Rules (transform_rules.json):
|
140 |
{RULES_TEXT_FULL}
|
141 |
2) Additional short gender rules (gender_rules.json):
|
|
|
177 |
|
178 |
if api_mode == "GPT":
|
179 |
base_url = None
|
180 |
+
model_name = "gpt-4o"
|
181 |
else:
|
182 |
base_url = "https://api.deepseek.com"
|
183 |
model_name = "deepseek-chat"
|