merve HF staff commited on
Commit
b59be17
β€’
1 Parent(s): 73d7c8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -21,9 +21,14 @@ def load_data(idx):
21
  return instruction, input_sample, response
22
 
23
  def create_record(text, feedback):
 
24
  status = "Validated" if feedback == "Doğru" else "Default"
25
- print(text)
26
- fields = eval(text)
 
 
 
 
27
 
28
  # the label will come from the flag object in Gradio
29
  label = "True"
 
21
  return instruction, input_sample, response
22
 
23
  def create_record(text, feedback):
24
+
25
  status = "Validated" if feedback == "Doğru" else "Default"
26
+ instruction, input_sample, response = load_data(int(text))
27
+
28
+ fields = {
29
+ "talimat": instruction,
30
+ "girdi": input_sample,
31
+ "Γ§Δ±ktΔ±": response}
32
 
33
  # the label will come from the flag object in Gradio
34
  label = "True"