Commit
·
eda129a
1
Parent(s):
061018b
Update app.py
Browse filesdropdown minwidth update
app.py
CHANGED
@@ -86,10 +86,10 @@ with gr.Blocks() as demo:
|
|
86 |
with gr.Row():
|
87 |
default_prompt_set = "1 中文提示词.json"
|
88 |
prompt_set_name = gr.Dropdown(prompt_set_list.keys(), value=default_prompt_set, label='提示词集合')
|
89 |
-
prompt_name = gr.Dropdown(prompt_set_list[default_prompt_set].keys(), label='提示词')
|
90 |
with gr.Row():
|
91 |
model_name = gr.Dropdown(['gpt-3.5-turbo', 'gpt-4'], value='gpt-3.5-turbo', label='模型')
|
92 |
-
provider_name = gr.Dropdown(provider_dict.keys(), value='GetGpt', label='提供者')
|
93 |
|
94 |
def change_prompt_set(prompt_set_name):
|
95 |
return gr.Dropdown.update(choices=list(prompt_set_list[prompt_set_name].keys()))
|
|
|
86 |
with gr.Row():
|
87 |
default_prompt_set = "1 中文提示词.json"
|
88 |
prompt_set_name = gr.Dropdown(prompt_set_list.keys(), value=default_prompt_set, label='提示词集合')
|
89 |
+
prompt_name = gr.Dropdown(prompt_set_list[default_prompt_set].keys(), label='提示词', min_width=20)
|
90 |
with gr.Row():
|
91 |
model_name = gr.Dropdown(['gpt-3.5-turbo', 'gpt-4'], value='gpt-3.5-turbo', label='模型')
|
92 |
+
provider_name = gr.Dropdown(provider_dict.keys(), value='GetGpt', label='提供者', min_width=20)
|
93 |
|
94 |
def change_prompt_set(prompt_set_name):
|
95 |
return gr.Dropdown.update(choices=list(prompt_set_list[prompt_set_name].keys()))
|