Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,8 @@ default_passage = wikipedia.summary("pirate code", sentences=2)
|
|
13 |
def update_passage(passage_name):
|
14 |
try:
|
15 |
sum = wikipedia.summary(passage_name, sentences=2)
|
16 |
-
|
|
|
17 |
sum=wikipedia.summary(wikipedia.search(passage_name)[0], sentences=2)
|
18 |
passage.value = sum
|
19 |
except:
|
|
|
13 |
def update_passage(passage_name):
|
14 |
try:
|
15 |
sum = wikipedia.summary(passage_name, sentences=2)
|
16 |
+
print(sum)
|
17 |
+
if isinstance(list, sum):
|
18 |
sum=wikipedia.summary(wikipedia.search(passage_name)[0], sentences=2)
|
19 |
passage.value = sum
|
20 |
except:
|