Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,9 +41,8 @@ outputs = [
|
|
41 |
|
42 |
title = "Question Answering with ELECTRA and Wikipedia"
|
43 |
description = 'Please note that topics with long articles may take around a minute. If you get an error, please try double checking spelling, or try a more specific topic (e.g. George H. Bush instead of George Bush).'
|
44 |
-
article = ''
|
45 |
examples = [
|
46 |
-
["Unabomber","What radicalized him?"],
|
47 |
['Politics of the United States', 'is the future bright?'],
|
48 |
['Roman Empire', 'why did it collapse?'],
|
49 |
['American Civil War', 'What was the cause?'],
|
@@ -55,6 +54,8 @@ examples = [
|
|
55 |
["Jayson Tatum","How was he percieved coming out of high school?"],
|
56 |
["John Deere Tractors","Do their customers like them?"],
|
57 |
['Michael Jordan', 'Was he successful outside of basketball?'],
|
|
|
|
|
58 |
]
|
59 |
|
60 |
gr.Interface(get_answer, inputs, outputs, title=title, description=description, article=article,
|
|
|
41 |
|
42 |
title = "Question Answering with ELECTRA and Wikipedia"
|
43 |
description = 'Please note that topics with long articles may take around a minute. If you get an error, please try double checking spelling, or try a more specific topic (e.g. George H. Bush instead of George Bush).'
|
44 |
+
article = 'Pondering the future of American soceity, amongst other things.'
|
45 |
examples = [
|
|
|
46 |
['Politics of the United States', 'is the future bright?'],
|
47 |
['Roman Empire', 'why did it collapse?'],
|
48 |
['American Civil War', 'What was the cause?'],
|
|
|
54 |
["Jayson Tatum","How was he percieved coming out of high school?"],
|
55 |
["John Deere Tractors","Do their customers like them?"],
|
56 |
['Michael Jordan', 'Was he successful outside of basketball?'],
|
57 |
+
["Unabomber","What radicalized him?"],
|
58 |
+
|
59 |
]
|
60 |
|
61 |
gr.Interface(get_answer, inputs, outputs, title=title, description=description, article=article,
|