Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -400,7 +400,7 @@ def generate_text_with_probs(initial_context, context_text , top_p, max_length,
|
|
400 |
Tokens = {}
|
401 |
|
402 |
#input_ids = tokenizer.encode(initial_context, return_tensors="pt").to(device='mps')
|
403 |
-
input_ids = tokenizer.encode(
|
404 |
generated_text = initial_context
|
405 |
token_tables = []
|
406 |
|
|
|
400 |
Tokens = {}
|
401 |
|
402 |
#input_ids = tokenizer.encode(initial_context, return_tensors="pt").to(device='mps')
|
403 |
+
input_ids = tokenizer.encode(initial_context, return_tensors="pt").to(device='cpu')
|
404 |
generated_text = initial_context
|
405 |
token_tables = []
|
406 |
|