Spaces:
Sleeping
Sleeping
Commit
•
84d0230
1
Parent(s):
1ae1eba
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,8 @@ def generate(topic):
|
|
129 |
limericks = []
|
130 |
|
131 |
#topic = input("Please enter a topic: ")
|
132 |
-
topic_summary = remove_punctuation(wikipedia.summary(topic))
|
|
|
133 |
# if len(topic_summary) > 2000:
|
134 |
# topic_summary = topic_summary[:2000]
|
135 |
word_list = topic_summary.split()
|
|
|
129 |
limericks = []
|
130 |
|
131 |
#topic = input("Please enter a topic: ")
|
132 |
+
## topic_summary = remove_punctuation(wikipedia.summary(topic))
|
133 |
+
topic_summary = topic
|
134 |
# if len(topic_summary) > 2000:
|
135 |
# topic_summary = topic_summary[:2000]
|
136 |
word_list = topic_summary.split()
|