merve HF Staff commited on
Commit
f086ce1
Β·
1 Parent(s): 9fbbfae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -12,7 +12,10 @@ def load_data(idx):
12
  df = load_dataset("merve/turkish_instructions", split="train").to_pandas()
13
  sample = df.iloc[int(idx)]
14
  instruction = sample["talimat"]
15
- input_sample = sample["giriş"]
 
 
 
16
  response = sample["Γ§Δ±ktΔ±"]
17
  return instruction, input_sample, response
18
 
 
12
  df = load_dataset("merve/turkish_instructions", split="train").to_pandas()
13
  sample = df.iloc[int(idx)]
14
  instruction = sample["talimat"]
15
+ if sample["giriş"]:
16
+ input_sample = sample["giriş"]
17
+ else:
18
+ input_sample=""
19
  response = sample["Γ§Δ±ktΔ±"]
20
  return instruction, input_sample, response
21