Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def load_data(idx):
|
|
21 |
return instruction, input_sample, response
|
22 |
|
23 |
|
24 |
-
def create_record(instruction,
|
25 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
26 |
fields = {
|
27 |
"talimat": instruction,
|
@@ -60,7 +60,7 @@ class ArgillaLogger(FlaggingCallback):
|
|
60 |
) -> int:
|
61 |
text = flag_data[0]
|
62 |
inference = flag_data[1]
|
63 |
-
rg.log(name=self.dataset_name, records=create_record(
|
64 |
|
65 |
|
66 |
idx_input = gr.Slider(minimum=0, maximum=51564, label="SatΔ±r")
|
|
|
21 |
return instruction, input_sample, response
|
22 |
|
23 |
|
24 |
+
def create_record(instruction, input_sample, response, feedback):
|
25 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
26 |
fields = {
|
27 |
"talimat": instruction,
|
|
|
60 |
) -> int:
|
61 |
text = flag_data[0]
|
62 |
inference = flag_data[1]
|
63 |
+
rg.log(name=self.dataset_name, records=create_record(instruction, input_sample, response, flag_option))
|
64 |
|
65 |
|
66 |
idx_input = gr.Slider(minimum=0, maximum=51564, label="SatΔ±r")
|