Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def ui():
|
|
| 48 |
logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
|
| 49 |
|
| 50 |
topic_name= st.text_input('Enter your topic for Wikipedia: ')
|
| 51 |
-
if topic_name is not None and topic_name!='
|
| 52 |
page_object = wikipedia.page(topic_name)
|
| 53 |
content = page_object.content
|
| 54 |
filename = f"./Data/{topic_name}.txt"
|
|
|
|
| 48 |
logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
|
| 49 |
|
| 50 |
topic_name= st.text_input('Enter your topic for Wikipedia: ')
|
| 51 |
+
if topic_name is not None and topic_name!='':
|
| 52 |
page_object = wikipedia.page(topic_name)
|
| 53 |
content = page_object.content
|
| 54 |
filename = f"./Data/{topic_name}.txt"
|