gehnew commited on
Commit
381512b
·
verified ·
1 Parent(s): 64d6f0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,8 +27,8 @@ def chat(message, history):
27
  add_generation_prompt=True
28
  )
29
 
30
- model_inputs = tokenizer([text], return_tensors="pt").to("cuda")
31
- # model_inputs = tokenizer([text], return_tensors="pt")
32
  streamer = TextIteratorStreamer(tokenizer, timeout=10., skip_prompt=True, skip_special_tokens=True)
33
  generate_kwargs = dict(
34
  model_inputs,
 
27
  add_generation_prompt=True
28
  )
29
 
30
+ # model_inputs = tokenizer([text], return_tensors="pt").to("cuda")
31
+ model_inputs = tokenizer([text], return_tensors="pt")
32
  streamer = TextIteratorStreamer(tokenizer, timeout=10., skip_prompt=True, skip_special_tokens=True)
33
  generate_kwargs = dict(
34
  model_inputs,