Skip to content

Commit c2dcbf4

Browse files
Update manim_generator.html
1 parent 7bb982e commit c2dcbf4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

manim_generator.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ <h3>Output:</h3>
122122
</div>
123123

124124
<div id="message-box"></div>
125-
125+
URL='https://illustrious-dolphin-b31b9c.netlify.app/.netlify/functions/gemini-proxy';
126126
<script>
127127
async function sendPrompt() {
128128
const prompt = document.getElementById("prompt").value.trim();
@@ -132,13 +132,13 @@ <h3>Output:</h3>
132132
output.textContent = "Generating... Please wait.";
133133
copyButton.style.display = "none";
134134
downloadButton.style.display = "none";
135-
135+
136136
try {
137137
if (!prompt.trim()) {
138138
throw new Error("Please enter a prompt to generate code.");
139139
}
140-
141-
const response = await fetch("https://illustrious-dolphin-b31b9c.netlify.app/.netlify/functions/gemini-proxy", {
140+
141+
const response = await fetch(URL, {
142142
method: "POST",
143143
headers: {
144144
"Content-Type": "application/json"
@@ -229,3 +229,4 @@ <h3>Output:</h3>
229229
</script>
230230
</body>
231231
</html>
232+

0 commit comments

Comments
 (0)