Spaces:
Sleeping
Sleeping
Handles the config for flagging.
Browse files- app/examples/log.csv +0 -1
- app/gradio_meta_prompt.py +4 -4
app/examples/log.csv
CHANGED
@@ -235,4 +235,3 @@ if (mysqli_num_rows($result) > 0) {
|
|
235 |
* Extra or missing line breaks at the beginning or end of the output
|
236 |
* YAML wrapped in backquotes",""
|
237 |
“老爸,老爸,我们去哪里呀?”,《爸爸去哪儿》,Exactly text match.,"查询歌词出处。"
|
238 |
-
How do I reverse a list in Python?,Use the `[::-1]` slicing technique or the `list.reverse()` method.,"Similar in meaning, text length and style.",
|
|
|
235 |
* Extra or missing line breaks at the beginning or end of the output
|
236 |
* YAML wrapped in backquotes",""
|
237 |
“老爸,老爸,我们去哪里呀?”,《爸爸去哪儿》,Exactly text match.,"查询歌词出处。"
|
|
app/gradio_meta_prompt.py
CHANGED
@@ -215,7 +215,7 @@ with gr.Blocks() as demo:
|
|
215 |
output_output = gr.Textbox(label="Output", show_copy_button=True)
|
216 |
analysis_output = gr.Textbox(
|
217 |
label="Analysis", show_copy_button=True)
|
218 |
-
flag_button = gr.Button(value="Flag", variant="secondary")
|
219 |
|
220 |
submit_button.click(process_message_with_single_llm,
|
221 |
inputs=[user_message_input, expected_output_input, acceptance_criteria_input,
|
@@ -230,9 +230,9 @@ with gr.Blocks() as demo:
|
|
230 |
outputs=[system_message_output, output_output, analysis_output])
|
231 |
multiple_clear_button.click(clear_inputs,
|
232 |
outputs=[user_message_input, expected_output_input, acceptance_criteria_input, initial_system_message_input])
|
233 |
-
flag_button.click(flagging_callback.flag,
|
234 |
-
|
235 |
-
|
236 |
|
237 |
# Load examples
|
238 |
examples = config.examples_path
|
|
|
215 |
output_output = gr.Textbox(label="Output", show_copy_button=True)
|
216 |
analysis_output = gr.Textbox(
|
217 |
label="Analysis", show_copy_button=True)
|
218 |
+
flag_button = gr.Button(value="Flag", variant="secondary", visible=config.allow_flagging)
|
219 |
|
220 |
submit_button.click(process_message_with_single_llm,
|
221 |
inputs=[user_message_input, expected_output_input, acceptance_criteria_input,
|
|
|
230 |
outputs=[system_message_output, output_output, analysis_output])
|
231 |
multiple_clear_button.click(clear_inputs,
|
232 |
outputs=[user_message_input, expected_output_input, acceptance_criteria_input, initial_system_message_input])
|
233 |
+
# flag_button.click(flagging_callback.flag,
|
234 |
+
# inputs=[user_message_input, expected_output_input, acceptance_criteria_input, initial_system_message_input],
|
235 |
+
# outputs=[])
|
236 |
|
237 |
# Load examples
|
238 |
examples = config.examples_path
|