Commit ·
b1ba7c6
1
Parent(s): a7eb8ff
system_prompt as a dropdown
Browse files
app.py
CHANGED
|
@@ -139,8 +139,8 @@ iface = gr.ChatInterface(
|
|
| 139 |
predict,
|
| 140 |
additional_inputs=[
|
| 141 |
gr.Dropdown(model, label="Model", value="gpt-4-1106-preview"),
|
| 142 |
-
gr.TextArea(dream_sd_prompt_generation_prompt, label="System Prompt"),
|
| 143 |
-
|
| 144 |
],
|
| 145 |
).queue()
|
| 146 |
# 启动Gradio应用程序
|
|
|
|
| 139 |
predict,
|
| 140 |
additional_inputs=[
|
| 141 |
gr.Dropdown(model, label="Model", value="gpt-4-1106-preview"),
|
| 142 |
+
# gr.TextArea(dream_sd_prompt_generation_prompt, label="System Prompt"),
|
| 143 |
+
gr.Dropdown(system_prompt, label="System Prompt", value=system_prompt[0])
|
| 144 |
],
|
| 145 |
).queue()
|
| 146 |
# 启动Gradio应用程序
|