Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -195,12 +195,12 @@ No extra headings.
|
|
195 |
##############################################################################
|
196 |
def build_interface():
|
197 |
with gr.Blocks() as demo:
|
198 |
-
gr.Markdown("## Prompt
|
199 |
|
200 |
with gr.Row():
|
201 |
with gr.Column():
|
202 |
api_mode = gr.Radio(
|
203 |
-
label="Select API (GPT/DeepSeek)",
|
204 |
choices=["GPT", "DeepSeek"],
|
205 |
value="GPT"
|
206 |
)
|
@@ -211,7 +211,7 @@ def build_interface():
|
|
211 |
)
|
212 |
|
213 |
gender_option = gr.Radio(
|
214 |
-
label="
|
215 |
choices=[
|
216 |
"Trans_to_Male",
|
217 |
"Trans_to_Female",
|
@@ -279,18 +279,18 @@ def build_interface():
|
|
279 |
|
280 |
with gr.Column():
|
281 |
user_prompt = gr.Textbox(
|
282 |
-
label="Original Prompt (e.g. 1girl, butterfly, solo, ...)",
|
283 |
lines=5
|
284 |
)
|
285 |
final_output = gr.Textbox(
|
286 |
-
label="Transformed Output (tags + description)",
|
287 |
lines=10
|
288 |
)
|
289 |
|
290 |
with gr.Row():
|
291 |
translate_lang = gr.Dropdown(
|
292 |
-
label="Translate to Language",
|
293 |
-
choices=["English", "Chinese", "Japanese", "French", "German", "Spanish"],
|
294 |
value="English"
|
295 |
)
|
296 |
translated_text = gr.Textbox(
|
|
|
195 |
##############################################################################
|
196 |
def build_interface():
|
197 |
with gr.Blocks() as demo:
|
198 |
+
gr.Markdown("## Prompt Trans-Tool - 提示词物种性别转换器")
|
199 |
|
200 |
with gr.Row():
|
201 |
with gr.Column():
|
202 |
api_mode = gr.Radio(
|
203 |
+
label="Select API 选择API厂商 (GPT/DeepSeek)",
|
204 |
choices=["GPT", "DeepSeek"],
|
205 |
value="GPT"
|
206 |
)
|
|
|
211 |
)
|
212 |
|
213 |
gender_option = gr.Radio(
|
214 |
+
label="Trans-Option 选择转换目标",
|
215 |
choices=[
|
216 |
"Trans_to_Male",
|
217 |
"Trans_to_Female",
|
|
|
279 |
|
280 |
with gr.Column():
|
281 |
user_prompt = gr.Textbox(
|
282 |
+
label="Original Prompt 原始提示词 (e.g. 1girl, butterfly, solo, ...)",
|
283 |
lines=5
|
284 |
)
|
285 |
final_output = gr.Textbox(
|
286 |
+
label="Transformed Output 翻译结果 (tags + description)",
|
287 |
lines=10
|
288 |
)
|
289 |
|
290 |
with gr.Row():
|
291 |
translate_lang = gr.Dropdown(
|
292 |
+
label="Translate to Language 翻译语言",
|
293 |
+
choices=["English", "Chinese", "Japanese", "French", "German", "Italian", "Spanish", "Russian", "Dutch", "Persian", "Arabic", "Thai"],
|
294 |
value="English"
|
295 |
)
|
296 |
translated_text = gr.Textbox(
|