Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def forecast(csv_file):
|
|
| 25 |
|
| 26 |
# Generate forecast
|
| 27 |
with torch.no_grad():
|
| 28 |
-
predictions = model.generate(**inputs, max_length=
|
| 29 |
|
| 30 |
# Decode the generated forecast
|
| 31 |
forecast_text = tokenizer.decode(predictions[0], skip_special_tokens=True)
|
|
|
|
| 25 |
|
| 26 |
# Generate forecast
|
| 27 |
with torch.no_grad():
|
| 28 |
+
predictions = model.generate(**inputs, max_length=2500, num_return_sequences=1)
|
| 29 |
|
| 30 |
# Decode the generated forecast
|
| 31 |
forecast_text = tokenizer.decode(predictions[0], skip_special_tokens=True)
|