Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,10 +12,11 @@ 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 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
response = sample["Γ§Δ±ktΔ±"]
|
| 20 |
return instruction, input_sample, response
|
| 21 |
|
|
|
|
| 12 |
df = load_dataset("merve/turkish_instructions", split="train").to_pandas()
|
| 13 |
sample = df.iloc[int(idx)]
|
| 14 |
instruction = sample["talimat"]
|
| 15 |
+
try:
|
| 16 |
+
if sample["giriΕ"]:
|
| 17 |
+
input_sample = sample["giriΕ"]
|
| 18 |
+
except:
|
| 19 |
+
input_sample="-"
|
| 20 |
response = sample["Γ§Δ±ktΔ±"]
|
| 21 |
return instruction, input_sample, response
|
| 22 |
|