yangminded commited on
Commit
76b6aed
·
verified ·
1 Parent(s): af1192e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -46,6 +46,10 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
46
  # RUNTIME PARAMS
47
  set_inference_on = True
48
 
 
 
 
 
49
  # Agent stuff starts here
50
  class BasicAgent:
51
  def __init__(self):
@@ -62,7 +66,7 @@ class BasicAgent:
62
  additional_authorized_imports=['pandas', 'requests', 'markdownify'],
63
  max_steps=10,
64
  verbosity_level=1
65
- #step_callbacks=[delay_execution_10]
66
  )
67
 
68
 
 
46
  # RUNTIME PARAMS
47
  set_inference_on = True
48
 
49
+ # Utility functions
50
+ def delay_execution_10():
51
+ time.wait(10)
52
+
53
  # Agent stuff starts here
54
  class BasicAgent:
55
  def __init__(self):
 
66
  additional_authorized_imports=['pandas', 'requests', 'markdownify'],
67
  max_steps=10,
68
  verbosity_level=1
69
+ step_callbacks=[delay_execution_10]
70
  )
71
 
72