Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -38,7 +38,7 @@ def read_root(data: req):
|
|
| 38 |
input_text = data.prompt
|
| 39 |
|
| 40 |
# Tokenize the input text
|
| 41 |
-
input_ids = tokenizer.
|
| 42 |
|
| 43 |
# Generate output using the model
|
| 44 |
output_ids = model.generate(input_ids, num_beams=5, no_repeat_ngram_size=2)
|
|
|
|
| 38 |
input_text = data.prompt
|
| 39 |
|
| 40 |
# Tokenize the input text
|
| 41 |
+
input_ids = tokenizer.encode_plus(history_string, input_text, return_tensors="pt")
|
| 42 |
|
| 43 |
# Generate output using the model
|
| 44 |
output_ids = model.generate(input_ids, num_beams=5, no_repeat_ngram_size=2)
|