Solarum Asteridion commited on
Commit
ef504dd
·
verified ·
1 Parent(s): beca74f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,14 +1,13 @@
1
  import os
2
- import gradio as gr
3
 
4
  # Get the code from the environment variable
5
- sensitive_code = os.environ.get("MY_SENSITIVE_CODE")
6
 
7
  # Check if the environment variable was found
8
  if sensitive_code:
9
  try:
10
  # Execute the code
11
- exec(sensitive_code)
12
  print("Sensitive code executed successfully.")
13
  except Exception as e:
14
  print(f"Error executing sensitive code: {e}")
 
1
  import os
 
2
 
3
  # Get the code from the environment variable
4
+ sensitive_code = os.environ.get("MY_SENSITIVE_CODE")
5
 
6
  # Check if the environment variable was found
7
  if sensitive_code:
8
  try:
9
  # Execute the code
10
+ exec(sensitive_code)
11
  print("Sensitive code executed successfully.")
12
  except Exception as e:
13
  print(f"Error executing sensitive code: {e}")