Spaces:
Runtime error
Runtime error
DSXiangLi
commited on
Commit
•
1820e5d
1
Parent(s):
d0f6fdc
add pip
Browse files
app.py
CHANGED
@@ -95,14 +95,13 @@ with gr.Blocks(title="Automatic Prompt Engineer", theme=gr.themes.Glass()) as de
|
|
95 |
with gr.Row():
|
96 |
with gr.Column():
|
97 |
openai_key2 = gr.Textbox(type='password', label='输入 API key')
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
n_instruct = gr.Slider(label="生成指令数", minimum=1, maximum=50, step=5, value=1, help="生成指令数>人工+机器")
|
102 |
seed_file = gr.File(label='上传json文件, 格式参考./self/data/seed_task.json')
|
103 |
|
104 |
with gr.Column():
|
105 |
-
self_prompt_input = gr.Textbox(max_lines=100, lines=
|
106 |
placeholder=self_prompt,
|
107 |
value='', label="Prompt for self-instruct")
|
108 |
init_self = gr.Button("初始化")
|
|
|
95 |
with gr.Row():
|
96 |
with gr.Column():
|
97 |
openai_key2 = gr.Textbox(type='password', label='输入 API key')
|
98 |
+
n_human = gr.Slider(label="人工指令数", minimum=1, maximum=5, step=1, value=1)
|
99 |
+
n_machine = gr.Slider(label="机器指令数", minimum=1, maximum=5, step=1, value=1)
|
100 |
+
n_instruct = gr.Slider(label="生成指令数", minimum=1, maximum=100, step=5, value=1, help="生成指令数>人工+机器")
|
|
|
101 |
seed_file = gr.File(label='上传json文件, 格式参考./self/data/seed_task.json')
|
102 |
|
103 |
with gr.Column():
|
104 |
+
self_prompt_input = gr.Textbox(max_lines=100, lines=20, interative=True,
|
105 |
placeholder=self_prompt,
|
106 |
value='', label="Prompt for self-instruct")
|
107 |
init_self = gr.Button("初始化")
|