pip64 commited on
Commit
92e03e1
1 Parent(s): 5555b3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = list(set(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