Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,12 +18,7 @@ def load_data(idx):
|
|
18 |
else:
|
19 |
input_sample="-"
|
20 |
response = sample[3]
|
21 |
-
return
|
22 |
-
"talimat": instruction,
|
23 |
-
"input": input_sample,
|
24 |
-
"response": response
|
25 |
-
}
|
26 |
-
|
27 |
|
28 |
def create_record(instruction, input_sample, response, feedback):
|
29 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
@@ -37,7 +32,7 @@ def create_record(instruction, input_sample, response, feedback):
|
|
37 |
label = "True"
|
38 |
|
39 |
record = rg.TextClassificationRecord(
|
40 |
-
inputs=fields,
|
41 |
annotation=label,
|
42 |
status=status,
|
43 |
metadata={"feedback": feedback}
|
|
|
18 |
else:
|
19 |
input_sample="-"
|
20 |
response = sample[3]
|
21 |
+
return instruction, input_sample, response
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
def create_record(instruction, input_sample, response, feedback):
|
24 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
|
|
32 |
label = "True"
|
33 |
|
34 |
record = rg.TextClassificationRecord(
|
35 |
+
inputs=str(fields),
|
36 |
annotation=label,
|
37 |
status=status,
|
38 |
metadata={"feedback": feedback}
|