Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def update_passage(passage_name):
|
|
20 |
sum = wikipedia.summary(wikipedia.search(passage_name)[0], sentences=2, auto_suggest=False)
|
21 |
# print(sum, wikipedia.search(passage_name))
|
22 |
passage.value = sum
|
23 |
-
|
24 |
sum = "Please specify your article theme differently"
|
25 |
|
26 |
return sum, "", gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
|
|
20 |
sum = wikipedia.summary(wikipedia.search(passage_name)[0], sentences=2, auto_suggest=False)
|
21 |
# print(sum, wikipedia.search(passage_name))
|
22 |
passage.value = sum
|
23 |
+
except:
|
24 |
sum = "Please specify your article theme differently"
|
25 |
|
26 |
return sum, "", gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|