sparkleman commited on
Commit
a14fe00
·
1 Parent(s): 4ed9fde

FIX: Remove print

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -204,7 +204,7 @@ def generate(
204
  out_last = 0
205
 
206
  cache_word_list = []
207
- cache_word_len = 4
208
 
209
  for i in range(max_tokens):
210
  for n in occurrence:
@@ -258,7 +258,6 @@ def generate(
258
  cache_word_list.append(tmp)
259
  output_cache_str = "".join(cache_word_list)
260
 
261
- print(output_cache_str)
262
  for stop_words in request.stop:
263
  if stop_words in output_cache_str:
264
  yield {
 
204
  out_last = 0
205
 
206
  cache_word_list = []
207
+ cache_word_len = 5
208
 
209
  for i in range(max_tokens):
210
  for n in occurrence:
 
258
  cache_word_list.append(tmp)
259
  output_cache_str = "".join(cache_word_list)
260
 
 
261
  for stop_words in request.stop:
262
  if stop_words in output_cache_str:
263
  yield {