Spaces:
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,6 @@ def wikipediaScrap(article_name, wikipedia_language="en"):
|
|
33 |
with gr.Blocks(css="footer {visibility: hidden} #dsd_button {background: purple, color: white}") as demo:
|
34 |
with gr.Row():
|
35 |
inp = gr.Textbox(placeholder="Enter the name of wikipedia article", label="Wikipedia article name")
|
36 |
-
lan = gr.Textbox(placeholder="Enter the language code", label="Language")
|
37 |
btn = gr.Button("Start Scraping", elem_id="dsd_button")
|
38 |
with gr.Row():
|
39 |
content = gr.Textbox(label="Content")
|
@@ -42,6 +41,6 @@ with gr.Blocks(css="footer {visibility: hidden} #dsd_button {background: purple,
|
|
42 |
examples=[["Eiffel Tower"], ["Eiffel tower"]], fn=wikipediaScrap, inputs=[inp],
|
43 |
outputs=[content], cache_examples=True)
|
44 |
|
45 |
-
interface = gr.Interface(fn=wikipediaScrap, inputs=[inp
|
46 |
|
47 |
interface.launch(inline=False)
|
33 |
with gr.Blocks(css="footer {visibility: hidden} #dsd_button {background: purple, color: white}") as demo:
|
34 |
with gr.Row():
|
35 |
inp = gr.Textbox(placeholder="Enter the name of wikipedia article", label="Wikipedia article name")
|
|
|
36 |
btn = gr.Button("Start Scraping", elem_id="dsd_button")
|
37 |
with gr.Row():
|
38 |
content = gr.Textbox(label="Content")
|
41 |
examples=[["Eiffel Tower"], ["Eiffel tower"]], fn=wikipediaScrap, inputs=[inp],
|
42 |
outputs=[content], cache_examples=True)
|
43 |
|
44 |
+
interface = gr.Interface(fn=wikipediaScrap, inputs=[inp], outputs=[content])
|
45 |
|
46 |
interface.launch(inline=False)
|