Skip to content

Commit 176e921

Browse files
committed
update url
1 parent a0d4fd4 commit 176e921

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/widgets/sampler.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ function SampleWidget() {
595595
submit.disabled = true;
596596
const prompt = textArea.value;
597597
const encodedPrompt = encodeURIComponent(prompt);
598-
const url = `http://localhost:8000/generate?prompt=${encodedPrompt}`;
598+
const url = `http://13.61.94.100:8000/generate?prompt=${encodedPrompt}`;
599599

600600
let blinkInterval;
601601

@@ -639,7 +639,7 @@ function SampleWidget() {
639639
preview.innerHTML = "Preview";
640640
preview.disabled = true;
641641
preview.onclick = function (){
642-
const audioURL = `http://localhost:8000/preview`;
642+
const audioURL = `http://13.61.94.100:8000/preview`;
643643
const audio = new Audio(audioURL);
644644
audio.play();
645645
};
@@ -654,7 +654,7 @@ function SampleWidget() {
654654
save.innerHTML = "Save";
655655
save.disabled = true;
656656
save.onclick = function (){
657-
const audioURL = `http://localhost:8000/save`;
657+
const audioURL = `http://13.61.94.100:8000/save`;
658658
const link = document.createElement('a');
659659
link.href = audioURL;
660660
link.download = 'output.wav';
@@ -792,7 +792,7 @@ function SampleWidget() {
792792
preview.onclick = async function() {
793793
const from = fromInputBox.value
794794
const to = toInputBox.value
795-
const audioURL = `http://localhost:8000/trim-preview?start=${from}&end=${to}`;
795+
const audioURL = `http://13.61.94.100:8000/trim-preview?start=${from}&end=${to}`;
796796
const audio = new Audio(audioURL);
797797
audio.play();
798798
save.disabled = false;
@@ -808,7 +808,7 @@ function SampleWidget() {
808808
save.innerHTML = "Save";
809809
save.disabled = true;
810810
save.onclick = function (){
811-
const audioURL = `http://localhost:8000/trim-save`;
811+
const audioURL = `http://13.61.94.100:8000/trim-save`;
812812
const link = document.createElement('a');
813813
link.href = audioURL;
814814
link.download = 'trimmed-output.wav';

0 commit comments

Comments
 (0)