vinayakdev commited on
Commit
a069fc5
1 Parent(s): 9074544

Check for emptiness

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ if(col2.button("Generate!")):
11
  text_ar = text_ar.replace("\n", " ")
12
  text_ar = text_ar.split('.')
13
  for text in text_ar :
14
- if text.isspace() :
15
  continue
16
  pairs = creator(text)
17
  for pair in pairs:
 
11
  text_ar = text_ar.replace("\n", " ")
12
  text_ar = text_ar.split('.')
13
  for text in text_ar :
14
+ if text.isspace() or len(text) == 0:
15
  continue
16
  pairs = creator(text)
17
  for pair in pairs: