CognitiveScience commited on
Commit
07170ba
1 Parent(s): 1f2c70f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -68,7 +68,24 @@ def ccogsphere(name: str, rate: int, celsci: str):
68
  #demo.load()
69
  return reviews, total_reviews
70
 
71
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  def load_data():
73
  db = sqlite3.connect(DB_FILE)
74
  reviews, total_reviews = get_latest_reviews(db)
 
68
  #demo.load()
69
  return reviews, total_reviews
70
 
71
+ def run_actr():
72
+ from python_actr import log_everything
73
+
74
+ #code1="tim = MyAgent()"
75
+ #code2="subway=MyEnv()"
76
+ #code3="subway.agent=tim"
77
+ #code4="log_everything(subway)"]
78
+ from dcogsphere import RockPaperScissors
79
+ from dcogsphere import ProceduralPlayer
80
+ #from dcogsphere import logy
81
+
82
+ env=RockPaperScissors()
83
+ env.model1=ProceduralPlayer()
84
+ env.model1.choice=env.choice1
85
+ env.model2=ProceduralPlayer()
86
+ env.model2.choice=env.choice2
87
+ env.run()
88
+
89
  def load_data():
90
  db = sqlite3.connect(DB_FILE)
91
  reviews, total_reviews = get_latest_reviews(db)