Ludovicollin commited on
Commit
96f4e86
·
verified ·
1 Parent(s): bce3c7e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -6
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