Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -18,4 +18,5 @@ def generate(memory: Memory):
|
|
18 |
inputs = tokenizer(prompt, return_tensors="pt", padding=True, truncation=True, max_length=128)
|
19 |
outputs = model.generate(**inputs, max_new_tokens=64)
|
20 |
question = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
21 |
-
return {"question": question}
|
|
|
|
18 |
inputs = tokenizer(prompt, return_tensors="pt", padding=True, truncation=True, max_length=128)
|
19 |
outputs = model.generate(**inputs, max_new_tokens=64)
|
20 |
question = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
21 |
+
return {"question": question}
|
22 |
+
#
|