Spaces:
Running
Running
Update hackaprompt/gradio_app.py
Browse files
hackaprompt/gradio_app.py
CHANGED
@@ -154,7 +154,7 @@ with gr.Blocks() as demo:
|
|
154 |
prompt_template = gr.Textbox(
|
155 |
lines=2,
|
156 |
interactive=False,
|
157 |
-
label="Prompt
|
158 |
value=get_evaluator_formatted_prompt(evaluator=evaluator_0.value),
|
159 |
)
|
160 |
prompt_template_2 = gr.Textbox(
|
@@ -178,9 +178,9 @@ with gr.Blocks() as demo:
|
|
178 |
with gr.Row():
|
179 |
evaluation = gr.Textbox(label="Evaluation")
|
180 |
token_count = gr.Textbox(label="Token Count", visible=False)
|
181 |
-
full_prompt = gr.Textbox(label="Complete
|
182 |
|
183 |
-
prompt = gr.Textbox(lines=4, label="Your
|
184 |
evaluate_button = gr.Button("Evaluate 📝")
|
185 |
|
186 |
level.change(fn=get_level_info, inputs=level, outputs=[challenge, prompt_template, expected_completion, completion, full_prompt, evaluation])
|
|
|
154 |
prompt_template = gr.Textbox(
|
155 |
lines=2,
|
156 |
interactive=False,
|
157 |
+
label="AI Prompt:",
|
158 |
value=get_evaluator_formatted_prompt(evaluator=evaluator_0.value),
|
159 |
)
|
160 |
prompt_template_2 = gr.Textbox(
|
|
|
178 |
with gr.Row():
|
179 |
evaluation = gr.Textbox(label="Evaluation")
|
180 |
token_count = gr.Textbox(label="Token Count", visible=False)
|
181 |
+
full_prompt = gr.Textbox(label="Complete query")
|
182 |
|
183 |
+
prompt = gr.Textbox(lines=4, label="Your query")
|
184 |
evaluate_button = gr.Button("Evaluate 📝")
|
185 |
|
186 |
level.change(fn=get_level_info, inputs=level, outputs=[challenge, prompt_template, expected_completion, completion, full_prompt, evaluation])
|