SergeyO7 commited on
Commit
c26b369
·
verified ·
1 Parent(s): 71e7fb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -279,7 +279,8 @@ def get_current_time_raw(timezone: str) -> str:
279
  now = datetime.datetime.now(tz)
280
  return now.strftime("%Y-%m-%dT%H:%M:%S")
281
  except Exception as e:
282
- return f"Error: {str(e)}"
 
283
 
284
  # Model configuration
285
  final_answer = FinalAnswerTool()
@@ -305,8 +306,8 @@ agent = CodeAgent(
305
  verbosity_level=1,
306
  prompt_templates=prompt_templates,
307
  # safe_mode=True, # Enable safe code execution
308
- timeout=100, # Seconds before execution timeout
309
- max_memory=512, # MB memory limit
310
  file_system_access=False, # Disable disk write access
311
  network_access=False, # Block network operations
312
  max_code_iterations=100 # Prevent infinite loops )
 
279
  now = datetime.datetime.now(tz)
280
  return now.strftime("%Y-%m-%dT%H:%M:%S")
281
  except Exception as e:
282
+ return f"Error: {str(e
283
+ )}"
284
 
285
  # Model configuration
286
  final_answer = FinalAnswerTool()
 
306
  verbosity_level=1,
307
  prompt_templates=prompt_templates,
308
  # safe_mode=True, # Enable safe code execution
309
+ # timeout=100, # Seconds before execution timeout
310
+ # max_memory=512, # MB memory limit
311
  file_system_access=False, # Disable disk write access
312
  network_access=False, # Block network operations
313
  max_code_iterations=100 # Prevent infinite loops )