Spaces:
Runtime error
Runtime error
Charles1973
commited on
Commit
•
5bc68e8
1
Parent(s):
e743472
修正
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ model.eval()
|
|
35 |
# return tokenizer.batch_decode(output)
|
36 |
def Chat(prompt):
|
37 |
num = 3
|
38 |
-
input_ids = tokenizer.encode(prompt, return_tensors="pt",add_special_tokens=False)
|
39 |
#with torch.no_grad():
|
40 |
output = model.generate(
|
41 |
input_ids,
|
|
|
35 |
# return tokenizer.batch_decode(output)
|
36 |
def Chat(prompt):
|
37 |
num = 3
|
38 |
+
input_ids = tokenizer.encode(prompt, return_tensors="pt",add_special_tokens=False)
|
39 |
#with torch.no_grad():
|
40 |
output = model.generate(
|
41 |
input_ids,
|