Spaces:
Sleeping
Sleeping
Fix: Correct IndentationError in app.py by wrapping JS in string
Browse files
app.py
CHANGED
|
@@ -353,6 +353,7 @@ demo_interface = gr.Interface(
|
|
| 353 |
flagging_options=None
|
| 354 |
)
|
| 355 |
|
|
|
|
| 356 |
console.log('[MCP Script] Initializing script to change API link text...');
|
| 357 |
let foundAndChangedGlobal = false; // Declare here to be accessible in setInterval
|
| 358 |
|
|
@@ -389,7 +390,6 @@ demo_interface = gr.Interface(
|
|
| 389 |
}
|
| 390 |
attempts++;
|
| 391 |
}, 100);
|
| 392 |
-
})();
|
| 393 |
"""
|
| 394 |
|
| 395 |
# Combine interfaces into a Blocks app
|
|
|
|
| 353 |
flagging_options=None
|
| 354 |
)
|
| 355 |
|
| 356 |
+
js_code_for_head = """
|
| 357 |
console.log('[MCP Script] Initializing script to change API link text...');
|
| 358 |
let foundAndChangedGlobal = false; // Declare here to be accessible in setInterval
|
| 359 |
|
|
|
|
| 390 |
}
|
| 391 |
attempts++;
|
| 392 |
}, 100);
|
|
|
|
| 393 |
"""
|
| 394 |
|
| 395 |
# Combine interfaces into a Blocks app
|