Skip to content

Commit

Permalink
Performance Improvement on the Airtable Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Abellegese committed Oct 23, 2024
1 parent 439b681 commit fe0a7b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ersilia/hub/fetch/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ async def _fetch(self, model_id):
async def fetch(self, model_id):
await self._fetch(model_id)
self.logger.debug("Writing model source to file")
model_source_file = os.path.join(self._model_path(model_id), MODEL_SOURCE_FILE)
path = self._model_path(model_id)
os.makedirs(path, exist_ok=True)
model_source_file = os.path.join(path, MODEL_SOURCE_FILE)
with open(model_source_file, "w") as f:
f.write(self.model_source)

0 comments on commit fe0a7b0

Please sign in to comment.