Spaces:
Runtime error
Runtime error
Commit ·
9caee9d
1
Parent(s): af33862
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,8 @@ def question_answer(context, question):
|
|
| 4 |
prediccion = predictions[0]['answer'][0]
|
| 5 |
return prediccion
|
| 6 |
iface = gr.Interface(fn=question_answer, inputs=["text", "text"], outputs=["text"],
|
| 7 |
-
allow_flagging=
|
| 8 |
-
|
| 9 |
flagging_dir='flagged',
|
| 10 |
enable_queue = True)
|
| 11 |
iface.launch()
|
|
|
|
| 4 |
prediccion = predictions[0]['answer'][0]
|
| 5 |
return prediccion
|
| 6 |
iface = gr.Interface(fn=question_answer, inputs=["text", "text"], outputs=["text"],
|
| 7 |
+
allow_flagging="manual",
|
| 8 |
+
flagging_options=["correcto", "incorrecto"],
|
| 9 |
flagging_dir='flagged',
|
| 10 |
enable_queue = True)
|
| 11 |
iface.launch()
|