merve HF Staff commited on
Commit
6dd641d
Β·
1 Parent(s): 9053bac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -20,13 +20,10 @@ def load_data(idx):
20
  response = sample[3]
21
  return instruction, input_sample, response
22
 
23
- def create_record(instruction, input_sample, response, feedback):
24
  status = "Validated" if feedback == "Doğru" else "Default"
25
- fields = {
26
- "talimat": instruction,
27
- "input": input_sample,
28
- "response": response
29
- }
30
 
31
  # the label will come from the flag object in Gradio
32
  label = "True"
 
20
  response = sample[3]
21
  return instruction, input_sample, response
22
 
23
+ def create_record(text, feedback):
24
  status = "Validated" if feedback == "Doğru" else "Default"
25
+
26
+ fields = eval(text)
 
 
 
27
 
28
  # the label will come from the flag object in Gradio
29
  label = "True"