Spaces:
Runtime error
Runtime error
Commit
·
00de4b7
1
Parent(s):
fea390c
Update model.py
Browse files
model.py
CHANGED
@@ -50,7 +50,7 @@ def run(message: str,
|
|
50 |
top_p: float = 0.9,
|
51 |
top_k: int = 50) -> Iterator[str]:
|
52 |
prompt = get_prompt(message, chat_history, system_prompt)
|
53 |
-
inputs = tokenizer([prompt], return_tensors='pt', add_special_tokens=False).to('
|
54 |
|
55 |
streamer = TextIteratorStreamer(tokenizer,
|
56 |
timeout=10.,
|
|
|
50 |
top_p: float = 0.9,
|
51 |
top_k: int = 50) -> Iterator[str]:
|
52 |
prompt = get_prompt(message, chat_history, system_prompt)
|
53 |
+
inputs = tokenizer([prompt], return_tensors='pt', add_special_tokens=False).to('cpu')
|
54 |
|
55 |
streamer = TextIteratorStreamer(tokenizer,
|
56 |
timeout=10.,
|