Skip to content

Commit

Permalink
Merge pull request #9 from GATEOverflow/main
Browse files Browse the repository at this point in the history
Support generic inference result repos
  • Loading branch information
arjunsuresh authored Sep 26, 2024
2 parents 437360a + 05f24a7 commit 6338ec3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions javascripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ models_edge_ = [ "gptj-99", "gptj-99.9", "bert-99", "stable-diffusion-xl", "reti
models_datacenter = [];
models_edge = [];

const dbName = "mlperf_inference_" + results_version;//results_version defined in config.js
//const dbVersion = 4; defined in config.js
const objStore = "inference_results";

repo_name = repo_name || "inference_results_"+results_version;
repo_owner = repo_owner || "GATEOverflow";
repo_branch = repo_branch || "main";
const dbName = repo_owner + "_" + repo_name + "_" + repo_branch;

async function fetchAndStoreData(db) {
try {
const data = await $.getJSON("https://raw.githubusercontent.com/GATEOverflow/inference_results_"+results_version+"/main/summary_results.json");
const data = await $.getJSON("https://raw.githubusercontent.com/" + repo_owner + "/" + repo_name + "/" + repo_branch + "/summary_results.json");

// Begin a transaction to save data in IndexedDB
const transaction = db.transaction([objStore], "readwrite");
Expand Down

0 comments on commit 6338ec3

Please sign in to comment.