Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 16 |
response = sample["Γ§Δ±ktΔ±"]
|
| 17 |
-
return instruction,
|
| 18 |
|
| 19 |
|
| 20 |
-
def create_record(instruction,
|
| 21 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
| 22 |
fields = {
|
| 23 |
"talimat": instruction,
|
| 24 |
-
"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 |
|