likewendy commited on
Commit
ea5db48
·
1 Parent(s): d76503c
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def respond(
60
  thread.start()
61
  # Print the generated text in real-time
62
  for new_text in streamer:
63
- yield tokenizer.decode(tokenizer.encode(new_text), skip_special_tokens=True)
64
 
65
  with gr.Blocks() as demo:
66
  with gr.Row():
 
60
  thread.start()
61
  # Print the generated text in real-time
62
  for new_text in streamer:
63
+ yield new_text
64
 
65
  with gr.Blocks() as demo:
66
  with gr.Row():