panther-hadat commited on
Commit
309ce74
1 Parent(s): 5a9e6a5

Error: Fix Error temp_text accessed before assignment

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def encode_docs(docs,maxlen = 64, stride = 32):
57
  spans = []
58
  file_names = []
59
  name, text = docs
60
-
61
  text = text.split(" ")
62
  if len(text) < maxlen:
63
  text = " ".join(text)
 
57
  spans = []
58
  file_names = []
59
  name, text = docs
60
+ temp_text = ""
61
  text = text.split(" ")
62
  if len(text) < maxlen:
63
  text = " ".join(text)