Elfsong commited on
Commit
35854a5
·
verified ·
1 Parent(s): 440519d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,9 +19,9 @@ lang_map = {
19
  "Rust": ["rust", "rust", "// Don't Worry, You Can't Break It. We Promise.\nfn main() {\n\tprintln!('Hello World!'); \n}\n"],
20
  }
21
 
22
- def post_task(lang, code, libs=None, timeout=30, memory_profile=False):
23
  url = 'https://monolith.cool/execute'
24
- data = {'language': lang, 'code': code, 'libraries': libs, 'timeout': timeout, 'run_memory_profile': memory_profile}
25
  response = requests.post(url, json=data)
26
  return response.json()
27
 
 
19
  "Rust": ["rust", "rust", "// Don't Worry, You Can't Break It. We Promise.\nfn main() {\n\tprintln!('Hello World!'); \n}\n"],
20
  }
21
 
22
+ def post_task(lang, code, libs=None, timeout=30, run_profiling=False):
23
  url = 'https://monolith.cool/execute'
24
+ data = {'language': lang, 'code': code, 'libraries': libs, 'timeout': timeout, 'run_profiling': memory_profile}
25
  response = requests.post(url, json=data)
26
  return response.json()
27