Spaces:
Runtime error
Runtime error
stanley
commited on
Commit
·
1b1fd68
1
Parent(s):
99c25d6
removed alerts
Browse files- index.html +6 -6
index.html
CHANGED
@@ -218,7 +218,7 @@ html, body {
|
|
218 |
|
219 |
|
220 |
|
221 |
-
alert("starting js");
|
222 |
|
223 |
function toggleToolbar() {
|
224 |
console.log("Hamburger menu button clicked");
|
@@ -288,7 +288,7 @@ html, body {
|
|
288 |
|
289 |
const uploadTask = storageRef.put(blob);
|
290 |
|
291 |
-
alert("sucessful upload to
|
292 |
// Replace the successful upload handler with this:
|
293 |
uploadTask.on("state_changed", (snapshot) => {
|
294 |
// Handle the progress of the upload
|
@@ -311,7 +311,7 @@ html, body {
|
|
311 |
|
312 |
|
313 |
document.getElementById("hamburger-menu").addEventListener("click", toggleToolbar);
|
314 |
-
alert("js loaded");
|
315 |
</script>
|
316 |
|
317 |
<py-env>
|
@@ -444,7 +444,7 @@ history = History()
|
|
444 |
|
445 |
base_lst = [None]
|
446 |
async def draw_canvas() -> None:
|
447 |
-
alert("draw_canvas called")
|
448 |
width=1024
|
449 |
height=700
|
450 |
canvas=InfCanvas(1024,700)
|
@@ -470,7 +470,7 @@ async def draw_canvas() -> None:
|
|
470 |
|
471 |
|
472 |
async def draw_canvas_func(event):
|
473 |
-
alert("draw_canvas gradio called")
|
474 |
try:
|
475 |
app=parent.document.querySelector("gradio-app")
|
476 |
if app.shadowRoot:
|
@@ -526,7 +526,7 @@ async def draw_canvas_func(event):
|
|
526 |
|
527 |
base_lst[0]=canvas
|
528 |
|
529 |
-
alert("made it to end of draw_canvas gradio")
|
530 |
|
531 |
|
532 |
import js
|
|
|
218 |
|
219 |
|
220 |
|
221 |
+
// alert("starting js");
|
222 |
|
223 |
function toggleToolbar() {
|
224 |
console.log("Hamburger menu button clicked");
|
|
|
288 |
|
289 |
const uploadTask = storageRef.put(blob);
|
290 |
|
291 |
+
alert("sucessful upload to firebase");
|
292 |
// Replace the successful upload handler with this:
|
293 |
uploadTask.on("state_changed", (snapshot) => {
|
294 |
// Handle the progress of the upload
|
|
|
311 |
|
312 |
|
313 |
document.getElementById("hamburger-menu").addEventListener("click", toggleToolbar);
|
314 |
+
// alert("js loaded");
|
315 |
</script>
|
316 |
|
317 |
<py-env>
|
|
|
444 |
|
445 |
base_lst = [None]
|
446 |
async def draw_canvas() -> None:
|
447 |
+
# alert("draw_canvas called")
|
448 |
width=1024
|
449 |
height=700
|
450 |
canvas=InfCanvas(1024,700)
|
|
|
470 |
|
471 |
|
472 |
async def draw_canvas_func(event):
|
473 |
+
# alert("draw_canvas gradio called")
|
474 |
try:
|
475 |
app=parent.document.querySelector("gradio-app")
|
476 |
if app.shadowRoot:
|
|
|
526 |
|
527 |
base_lst[0]=canvas
|
528 |
|
529 |
+
# alert("made it to end of draw_canvas gradio")
|
530 |
|
531 |
|
532 |
import js
|