Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,13 @@ import os
|
|
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[
|
15 |
try:
|
16 |
-
if sample[
|
17 |
-
input_sample = sample[
|
18 |
except:
|
19 |
input_sample="-"
|
20 |
-
response = sample[
|
21 |
return instruction, input_sample, response
|
22 |
|
23 |
|
|
|
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[1]
|
15 |
try:
|
16 |
+
if sample[2]:
|
17 |
+
input_sample = sample[2]
|
18 |
except:
|
19 |
input_sample="-"
|
20 |
+
response = sample[3]
|
21 |
return instruction, input_sample, response
|
22 |
|
23 |
|