Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def generate_response(instruction, input_text, max_new_tokens):
|
|
40 |
input_text, # input
|
41 |
"" # output - leave this blank for generation!
|
42 |
)
|
43 |
-
], return_tensors="pt").to("
|
44 |
|
45 |
text_streamer = TextStreamer(tokenizer)
|
46 |
output = model.generate(**inputs, streamer=text_streamer, max_new_tokens=max_new_tokens)
|
|
|
40 |
input_text, # input
|
41 |
"" # output - leave this blank for generation!
|
42 |
)
|
43 |
+
], return_tensors="pt").to("cpu")
|
44 |
|
45 |
text_streamer = TextStreamer(tokenizer)
|
46 |
output = model.generate(**inputs, streamer=text_streamer, max_new_tokens=max_new_tokens)
|