seanpedrickcase commited on
Commit
7f2dc0f
·
1 Parent(s): 9337aae

Removed test event from entrypoint_router.py

Browse files
Files changed (1) hide show
  1. entrypoint_router.py +1 -6
entrypoint_router.py CHANGED
@@ -5,14 +5,9 @@ if __name__ == "__main__":
5
  run_direct_mode = os.getenv("RUN_DIRECT_MODE", "0")
6
 
7
  if run_direct_mode == "1":
8
- # Lambda execution or CLI invocation (Direct Mode)
9
  from lambda_entrypoint import lambda_handler
10
 
11
- # Simulate the Lambda event and context for local testing
12
- event = os.getenv("LAMBDA_TEST_EVENT", '{}')
13
- context = None # Add mock context if needed
14
- response = lambda_handler(eval(event), context)
15
- print(response)
16
  else:
17
  # Gradio App execution
18
  from app import app, max_queue_size, max_file_size # Replace with actual import if needed
 
5
  run_direct_mode = os.getenv("RUN_DIRECT_MODE", "0")
6
 
7
  if run_direct_mode == "1":
8
+ # Invoke the lambda handler
9
  from lambda_entrypoint import lambda_handler
10
 
 
 
 
 
 
11
  else:
12
  # Gradio App execution
13
  from app import app, max_queue_size, max_file_size # Replace with actual import if needed