CognitiveScience commited on
Commit
2ffc61b
1 Parent(s): fcba70b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -29
app.py CHANGED
@@ -68,27 +68,6 @@ def ccogsphere(name: str, rate: int, celsci: str):
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
- print ("act")
89
- #resu=logy()
90
- #resulto=name1
91
- #return resulto
92
 
93
  def load_data():
94
  db = sqlite3.connect(DB_FILE)
@@ -122,14 +101,6 @@ with gr.Blocks() as demo:
122
  #run_code()
123
  load_data()
124
  #return "Hello " + name + "!"
125
- with gr.Row():
126
- with gr.Column():
127
- #name1 = gr.Textbox(label="n") #, placeholder="What is your name?")
128
- #name2 = gr.Textbox(label="n2") #, placeholder="What is your name?")
129
-
130
- submit2 = gr.Button(value="run")
131
- submit2.click(run_actr)
132
- #run_actr()
133
 
134
  def backup_db():
135
  shutil.copyfile(DB_FILE, "./reviews.2db")
 
68
  #demo.load()
69
  return reviews, total_reviews
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  def load_data():
73
  db = sqlite3.connect(DB_FILE)
 
101
  #run_code()
102
  load_data()
103
  #return "Hello " + name + "!"
 
 
 
 
 
 
 
 
104
 
105
  def backup_db():
106
  shutil.copyfile(DB_FILE, "./reviews.2db")