Skip to content

Commit

Permalink
Fix model class map referenc ein agile v2 notebook.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 691403357
  • Loading branch information
sdenton4 authored and copybara-github committed Oct 30, 2024
1 parent c3b1c22 commit 639b84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chirp/projects/agile2/2_agile_modeling_v2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"from chirp.projects.hoplite import brutalism\n",
"from chirp.projects.hoplite import score_functions\n",
"from chirp.projects.hoplite import sqlite_impl\n",
"from chirp.projects.zoo import models\n"
"from chirp.projects.zoo import model_configs\n"
]
},
{
Expand All @@ -41,7 +41,7 @@
"db = sqlite_impl.SQLiteGraphSearchDB.create(db_path)\n",
"db_model_config = db.get_metadata('model_config')\n",
"embed_config = db.get_metadata('embed_config')\n",
"model_class = models.model_class_map()[db_model_config.model_key]\n",
"model_class = model_configs.MODEL_CLASS_MAP[db_model_config.model_key]\n",
"embedding_model = model_class.from_config(db_model_config.model_config)\n",
"\n",
"audio_filepath_loader = audio_loader.make_filepath_loader(\n",
Expand Down

0 comments on commit 639b84f

Please sign in to comment.