merve HF Staff commited on
Commit
75ec6de
Β·
1 Parent(s): cc59196

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ def load_data(idx):
21
  return instruction, input_sample, response
22
 
23
 
24
- def create_record(instruction, inpu_sample, response, feedback):
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(text, flag_option))
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")