Spaces:
Runtime error
Runtime error
Commit
·
0b9ee65
1
Parent(s):
4d5642e
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,7 @@ from apscheduler.schedulers.background import BackgroundScheduler
|
|
| 15 |
|
| 16 |
import random
|
| 17 |
import time
|
| 18 |
-
|
| 19 |
-
from dcogsphere import MyEnv
|
| 20 |
|
| 21 |
|
| 22 |
|
|
@@ -80,13 +79,16 @@ def run_code():
|
|
| 80 |
#code1="tim = MyAgent()"
|
| 81 |
#code2="subway=MyEnv()"
|
| 82 |
#code3="subway.agent=tim"
|
| 83 |
-
#code4="log_everything(subway)"
|
|
|
|
|
|
|
| 84 |
tim = MyAgent()
|
| 85 |
subway=MyEnv()
|
| 86 |
subway.agent=tim
|
| 87 |
log_everything(subway)
|
| 88 |
code5="subway.run()"
|
| 89 |
exec(code5)
|
|
|
|
| 90 |
|
| 91 |
css="footer {visibility: hidden}"
|
| 92 |
|
|
|
|
| 15 |
|
| 16 |
import random
|
| 17 |
import time
|
| 18 |
+
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
|
|
|
|
| 79 |
#code1="tim = MyAgent()"
|
| 80 |
#code2="subway=MyEnv()"
|
| 81 |
#code3="subway.agent=tim"
|
| 82 |
+
#code4="log_everything(subway)"]
|
| 83 |
+
from dcogsphere import MyAgent
|
| 84 |
+
from dcogsphere import MyEnv
|
| 85 |
tim = MyAgent()
|
| 86 |
subway=MyEnv()
|
| 87 |
subway.agent=tim
|
| 88 |
log_everything(subway)
|
| 89 |
code5="subway.run()"
|
| 90 |
exec(code5)
|
| 91 |
+
print("done1")
|
| 92 |
|
| 93 |
css="footer {visibility: hidden}"
|
| 94 |
|