Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -299,7 +299,7 @@ with col2:
|
|
299 |
Provide a detailed, scientific analysis of the AI's experience.
|
300 |
AI:"""
|
301 |
|
302 |
-
|
303 |
output = model.generate(
|
304 |
input_ids, max_length=300, num_return_sequences=1,
|
305 |
no_repeat_ngram_size=2, top_k=50, top_p=0.95, temperature=0.7
|
|
|
299 |
Provide a detailed, scientific analysis of the AI's experience.
|
300 |
AI:"""
|
301 |
|
302 |
+
input_ids = tokenizer.encode(prompt, return_tensors="pt")
|
303 |
output = model.generate(
|
304 |
input_ids, max_length=300, num_return_sequences=1,
|
305 |
no_repeat_ngram_size=2, top_k=50, top_p=0.95, temperature=0.7
|