Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -173,7 +173,8 @@ def list_examples():
|
|
173 |
for example in dataset:
|
174 |
context = example["context"]
|
175 |
question = example["question"]
|
176 |
-
|
|
|
177 |
return examples
|
178 |
|
179 |
|
@@ -187,7 +188,7 @@ iface = gr.Interface(
|
|
187 |
outputs=[
|
188 |
Textbox(label="Generated Answer"),
|
189 |
Textbox(label="Retrieved Context"),
|
190 |
-
Textbox(label="Natural Answer")
|
191 |
],
|
192 |
examples=list_examples()
|
193 |
)
|
|
|
173 |
for example in dataset:
|
174 |
context = example["context"]
|
175 |
question = example["question"]
|
176 |
+
answer = example["answer"]
|
177 |
+
examples.append([question, context, answer])
|
178 |
return examples
|
179 |
|
180 |
|
|
|
188 |
outputs=[
|
189 |
Textbox(label="Generated Answer"),
|
190 |
Textbox(label="Retrieved Context"),
|
191 |
+
Textbox(label="Natural Answer"),
|
192 |
],
|
193 |
examples=list_examples()
|
194 |
)
|