Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def gen(text):
|
|
8 |
a = text
|
9 |
count = random.randint(5, 15)
|
10 |
_dataset = open("dataset.txt", "r").readlines()
|
11 |
-
_a =
|
12 |
__dataset = {el: {"content": i} for el, i in enumerate(_dataset)}
|
13 |
dataset = ' '.join([i['content'].replace('\n', '') for i in __dataset.values() if any(ii in i['content'] for ii in _a)])
|
14 |
|
|
|
8 |
a = text
|
9 |
count = random.randint(5, 15)
|
10 |
_dataset = open("dataset.txt", "r").readlines()
|
11 |
+
_a = a.split()
|
12 |
__dataset = {el: {"content": i} for el, i in enumerate(_dataset)}
|
13 |
dataset = ' '.join([i['content'].replace('\n', '') for i in __dataset.values() if any(ii in i['content'] for ii in _a)])
|
14 |
|