Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -16,13 +16,8 @@ import chainlit as cl
|
|
16 |
import js2py
|
17 |
os.environ["ANTHROPIC_API_KEY"] = os.environ["ANTHROPIC_API_KEY"]
|
18 |
|
19 |
-
js_code = ""
|
20 |
-
function urlCurrent() {
|
21 |
-
return window.location.href;
|
22 |
-
}
|
23 |
|
24 |
-
var urlActive = urlCurrent();
|
25 |
-
"""
|
26 |
urlActive = js2py.eval_js(js_code)
|
27 |
print(urlActive)
|
28 |
|
|
|
16 |
import js2py
|
17 |
os.environ["ANTHROPIC_API_KEY"] = os.environ["ANTHROPIC_API_KEY"]
|
18 |
|
19 |
+
js_code = "function urlCurrent() {return window.location.href;}"
|
|
|
|
|
|
|
20 |
|
|
|
|
|
21 |
urlActive = js2py.eval_js(js_code)
|
22 |
print(urlActive)
|
23 |
|