LenWilliamson commited on
Commit
354cedb
·
verified ·
1 Parent(s): e6fd838

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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 filename = preset.to_string();
51
  let loc = StorageLocation::HuggingFace { version: None };
52
- let cfg = IoConfig::new(loc).with_filename(&filename);
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)