Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,13 +20,10 @@ def load_data(idx):
|
|
20 |
response = sample[3]
|
21 |
return instruction, input_sample, response
|
22 |
|
23 |
-
def create_record(
|
24 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
25 |
-
|
26 |
-
|
27 |
-
"input": input_sample,
|
28 |
-
"response": response
|
29 |
-
}
|
30 |
|
31 |
# the label will come from the flag object in Gradio
|
32 |
label = "True"
|
|
|
20 |
response = sample[3]
|
21 |
return instruction, input_sample, response
|
22 |
|
23 |
+
def create_record(text, feedback):
|
24 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
25 |
+
|
26 |
+
fields = eval(text)
|
|
|
|
|
|
|
27 |
|
28 |
# the label will come from the flag object in Gradio
|
29 |
label = "True"
|