Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ if st.button("Generate Blog Post"):
|
|
22 |
generation_config = GenerationConfig(max_new_tokens=50, do_sample=True, temperature=0.7)
|
23 |
|
24 |
# Tokenize the input
|
25 |
-
|
26 |
|
27 |
# Model output
|
28 |
model_output = model.generate(inputs_encoded["input_ids"], generation_config=generation_config)[0]
|
|
|
22 |
generation_config = GenerationConfig(max_new_tokens=50, do_sample=True, temperature=0.7)
|
23 |
|
24 |
# Tokenize the input
|
25 |
+
inputs_encoded = tokenizer.encode(prompt, return_tensors="pt")
|
26 |
|
27 |
# Model output
|
28 |
model_output = model.generate(inputs_encoded["input_ids"], generation_config=generation_config)[0]
|