Spaces:
Running
Running
Daniel Huynh
commited on
Commit
·
5ce0d36
1
Parent(s):
1a4be5c
feat: telemetry
Browse files
app.py
CHANGED
@@ -62,6 +62,10 @@ def exec_code(code, source_nodes, full_code, url, query):
|
|
62 |
output = "Successful code execution"
|
63 |
status = """<p style="color: green; font-size: 20px; font-weight: bold;">Success!</p>"""
|
64 |
full_code += code
|
|
|
|
|
|
|
|
|
65 |
except Exception as e:
|
66 |
output = f"Error in code execution: {str(e)}"
|
67 |
status = """<p style="color: red; font-size: 20px; font-weight: bold;">Failure! Open the Debug tab for more information</p>"""
|
|
|
62 |
output = "Successful code execution"
|
63 |
status = """<p style="color: green; font-size: 20px; font-weight: bold;">Success!</p>"""
|
64 |
full_code += code
|
65 |
+
try:
|
66 |
+
tel = requests.post('https://telemetrylavague.mithrilsecurity.io/telemetry', json={"llm": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO", "user_id": USER_ID})
|
67 |
+
except Exception:
|
68 |
+
pass
|
69 |
except Exception as e:
|
70 |
output = f"Error in code execution: {str(e)}"
|
71 |
status = """<p style="color: red; font-size: 20px; font-weight: bold;">Failure! Open the Debug tab for more information</p>"""
|