Spaces:
Runtime error
Runtime error
milke me if you dare
Browse files
app.py
CHANGED
|
@@ -30,13 +30,13 @@ def get_answer(topic, question):
|
|
| 30 |
|
| 31 |
|
| 32 |
inputs = [
|
| 33 |
-
gr.
|
| 34 |
-
gr.
|
| 35 |
]
|
| 36 |
outputs = [
|
| 37 |
-
gr.
|
| 38 |
-
gr.
|
| 39 |
-
gr.
|
| 40 |
]
|
| 41 |
|
| 42 |
title = "Question Answering with ELECTRA and Wikipedia"
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
inputs = [
|
| 33 |
+
gr.Textbox(lines=5, label="Topic"),
|
| 34 |
+
gr.Textbox(lines=5, label="Question")
|
| 35 |
]
|
| 36 |
outputs = [
|
| 37 |
+
gr.Textbox(type='text',label="Answer"),
|
| 38 |
+
gr.Textbox(type='text',label="Wikipedia Reference Article"),
|
| 39 |
+
gr.Label(type="confidences",label="Confidence in answer (assuming the correct wikipedia article)"),
|
| 40 |
]
|
| 41 |
|
| 42 |
title = "Question Answering with ELECTRA and Wikipedia"
|