Skip to content

Commit

Permalink
Adjustments for hosting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
P-bibs committed Aug 31, 2020
1 parent b91510f commit 816d07a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ var settings = {

async function init() {
try {
model = await tf.loadLayersModel('https://paulbiberstein.me/chordgen/model.json');
model = await tf.loadLayersModel('https://chordgen.paulbiberstein.me/model.json');
} catch (err) {
model = await tf.loadLayersModel('http://localhost:8081/model.json');
}

try {
hashedReverseDict = JSON.parse(Get('https://paulbiberstein.me/chordgen/hashedReverseDict.json'));
hashedReverseDict = JSON.parse(Get('https://chordgen.paulbiberstein.me/hashedReverseDict.json'));
} catch (err) {
hashedReverseDict = JSON.parse(Get('http://localhost:8081/hashedReverseDict.json'));
}
Expand Down Expand Up @@ -166,7 +166,7 @@ function changeInstrument(num) {
} else if (settings.instrumentType === "sampler") {
synth = SampleLibrary.load({
instruments: settings.instrument,
baseUrl: "/chordgen/tonejs-instruments/samples/"
baseUrl: "/tonejs-instruments/samples/"
});
console.log("Polyphonic synth made")
console.log(settings.instrument);
Expand Down

0 comments on commit 816d07a

Please sign in to comment.