Update README.md
Browse files
README.md
CHANGED
|
@@ -47,9 +47,9 @@ async fn main() -> Result<()> {
|
|
| 47 |
let preset = EnvPreset::BinanceBtcUsdt1dSma20Sma50;
|
| 48 |
|
| 49 |
// Configure I/O to fetch seamlessly from Hugging Face
|
| 50 |
-
let
|
| 51 |
let loc = StorageLocation::HuggingFace { version: None };
|
| 52 |
-
let cfg = IoConfig::new(loc).
|
| 53 |
|
| 54 |
// Load the environment (downloads and caches locally on first run)
|
| 55 |
let mut env = chapaty::load(preset, &cfg)
|
|
|
|
| 47 |
let preset = EnvPreset::BinanceBtcUsdt1dSma20Sma50;
|
| 48 |
|
| 49 |
// Configure I/O to fetch seamlessly from Hugging Face
|
| 50 |
+
let file_stem = preset.to_string();
|
| 51 |
let loc = StorageLocation::HuggingFace { version: None };
|
| 52 |
+
let cfg = IoConfig::new(loc).with_file_stem(&file_stem);
|
| 53 |
|
| 54 |
// Load the environment (downloads and caches locally on first run)
|
| 55 |
let mut env = chapaty::load(preset, &cfg)
|