Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,9 +21,14 @@ def load_data(idx):
|
|
| 21 |
return instruction, input_sample, response
|
| 22 |
|
| 23 |
def create_record(text, feedback):
|
|
|
|
| 24 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# the label will come from the flag object in Gradio
|
| 29 |
label = "True"
|
|
|
|
| 21 |
return instruction, input_sample, response
|
| 22 |
|
| 23 |
def create_record(text, feedback):
|
| 24 |
+
|
| 25 |
status = "Validated" if feedback == "DoΔru" else "Default"
|
| 26 |
+
instruction, input_sample, response = load_data(int(text))
|
| 27 |
+
|
| 28 |
+
fields = {
|
| 29 |
+
"talimat": instruction,
|
| 30 |
+
"girdi": input_sample,
|
| 31 |
+
"Γ§Δ±ktΔ±": response}
|
| 32 |
|
| 33 |
# the label will come from the flag object in Gradio
|
| 34 |
label = "True"
|