Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ wikipedia.set_lang("en")
|
|
11 |
default_passage = wikipedia.summary("pirate code", sentences=2)
|
12 |
|
13 |
def update_passage(passage_name):
|
14 |
-
passage = wikipedia.summary(
|
15 |
return passage, ""
|
16 |
|
17 |
|
@@ -209,9 +209,8 @@ with block:
|
|
209 |
|
210 |
|
211 |
text = gr.Textbox(show_label=False, elem_id="result-textarea")
|
212 |
-
|
213 |
btn2 = gr.Button("Fetch another article")
|
214 |
-
passage_name = gr.Textbox(label="Wikipedia article name", placeholder="The pirate code")
|
215 |
with gr.Group(elem_id="share-btn-container"):
|
216 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
217 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
|
|
11 |
default_passage = wikipedia.summary("pirate code", sentences=2)
|
12 |
|
13 |
def update_passage(passage_name):
|
14 |
+
passage = wikipedia.summary(passage_name, sentences=2)
|
15 |
return passage, ""
|
16 |
|
17 |
|
|
|
209 |
|
210 |
|
211 |
text = gr.Textbox(show_label=False, elem_id="result-textarea")
|
212 |
+
passage_name = gr.Textbox(label="Challenge your friends with another Wikipedia article theme", placeholder="The pirate code")
|
213 |
btn2 = gr.Button("Fetch another article")
|
|
|
214 |
with gr.Group(elem_id="share-btn-container"):
|
215 |
community_icon = gr.HTML(community_icon_html, visible=False)
|
216 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|