Spaces:
Paused
Paused
pls work...
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def generate(
|
|
49 |
print(current_input)
|
50 |
input_ids = tokenizer(current_input, return_tensors="pt").input_ids.to(device)
|
51 |
|
52 |
-
outputs = model.generate(
|
53 |
|
54 |
print(tokenizer.decode(outputs[0], skip_special_tokens=False))
|
55 |
|
|
|
49 |
print(current_input)
|
50 |
input_ids = tokenizer(current_input, return_tensors="pt").input_ids.to(device)
|
51 |
|
52 |
+
outputs = model.generate(input_ids, max_new_tokens=100)
|
53 |
|
54 |
print(tokenizer.decode(outputs[0], skip_special_tokens=False))
|
55 |
|