Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def generate_prompt(action_file, style_file, artist_files, character_files, api_
|
|
105 |
# 返回结果
|
106 |
tags_list = [value for value in tags.values() if value]
|
107 |
final_tags = ", ".join(tags_list)
|
108 |
-
combined_output = f"
|
109 |
return final_tags, description, combined_output
|
110 |
|
111 |
# ========== Gradio 界面 ==========
|
@@ -118,7 +118,7 @@ def gradio_interface():
|
|
118 |
|
119 |
# API Key 输入区
|
120 |
api_key_input = gr.Textbox(
|
121 |
-
label="Enter your OpenAI API Key (Optional)",
|
122 |
placeholder="sk-...",
|
123 |
type="password"
|
124 |
)
|
|
|
105 |
# 返回结果
|
106 |
tags_list = [value for value in tags.values() if value]
|
107 |
final_tags = ", ".join(tags_list)
|
108 |
+
combined_output = f"{final_tags}\n {description}"
|
109 |
return final_tags, description, combined_output
|
110 |
|
111 |
# ========== Gradio 界面 ==========
|
|
|
118 |
|
119 |
# API Key 输入区
|
120 |
api_key_input = gr.Textbox(
|
121 |
+
label="Enter your OpenAI API Key (Optional) 请输入你充值好了的GPT的API不然不好使",
|
122 |
placeholder="sk-...",
|
123 |
type="password"
|
124 |
)
|