codys12 commited on
Commit
598f44b
1 Parent(s): dc574a3
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -46,6 +46,7 @@ def generate(
46
  current_input += message
47
 
48
  device = "cuda"
 
49
  input_ids = tokenizer(current_input, return_tensors="pt").input_ids.to(device)
50
  original_input_length = input_ids.shape[1] # Remember the input length
51
 
@@ -68,11 +69,9 @@ def generate(
68
  )
69
  t = Thread(target=model.generate, kwargs=generate_kwargs)
70
  t.start()
71
- print()
72
 
73
  outputs = []
74
  for text in streamer:
75
- print(text, end="")
76
  outputs.append(text)
77
  yield "".join(outputs)
78
 
 
46
  current_input += message
47
 
48
  device = "cuda"
49
+ print(current_input)
50
  input_ids = tokenizer(current_input, return_tensors="pt").input_ids.to(device)
51
  original_input_length = input_ids.shape[1] # Remember the input length
52
 
 
69
  )
70
  t = Thread(target=model.generate, kwargs=generate_kwargs)
71
  t.start()
 
72
 
73
  outputs = []
74
  for text in streamer:
 
75
  outputs.append(text)
76
  yield "".join(outputs)
77