Update app.py
Browse files
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,
|
| 23 |
url = 'https://monolith.cool/execute'
|
| 24 |
-
data = {'language': lang, 'code': code, 'libraries': libs, 'timeout': timeout, '
|
| 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 |
|