ThePixOne panther-hadat commited on
Commit
21ce0bf
1 Parent(s): 5a9e6a5

Error: Fix Error temp_text accessed before assignment (#3)

Browse files

- Error: Fix Error temp_text accessed before assignment (309ce74395c3759c7efb8b47375a7a754b6cf90e)


Co-authored-by: Suwilanji Chipofya <[email protected]>

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)