merve HF Staff commited on
Commit
80a28f1
Β·
1 Parent(s): 6371613

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,16 +12,16 @@ def load_data(idx):
12
  ds = load_dataset("merve/turkish_instructions", split="train").to_pandas()
13
  sample = df.iloc[idx]
14
  instruction = sample["talimat"]
15
- input = sample["giriş"]
16
  response = sample["Γ§Δ±ktΔ±"]
17
- return instruction, input, response
18
 
19
 
20
- def create_record(instruction, input, response, feedback):
21
  status = "Validated" if feedback == "Doğru" else "Default"
22
  fields = {
23
  "talimat": instruction,
24
- "input": input,
25
  "response": response
26
  }
27
 
 
12
  ds = load_dataset("merve/turkish_instructions", split="train").to_pandas()
13
  sample = df.iloc[idx]
14
  instruction = sample["talimat"]
15
+ input_sample = sample["giriş"]
16
  response = sample["Γ§Δ±ktΔ±"]
17
+ return instruction, input_sample, response
18
 
19
 
20
+ def create_record(instruction, inpu_sample, response, feedback):
21
  status = "Validated" if feedback == "Doğru" else "Default"
22
  fields = {
23
  "talimat": instruction,
24
+ "input": input_sample,
25
  "response": response
26
  }
27