CognitiveScience commited on
Commit
da1b796
·
1 Parent(s): d2e97b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -68,7 +68,7 @@ def ccogsphere(name: str, rate: int, celsci: str):
68
  #demo.load()
69
  return reviews, total_reviews
70
 
71
- def run_actr(name1: str):
72
  from python_actr import log_everything
73
 
74
  #code1="tim = MyAgent()"
@@ -85,10 +85,10 @@ def run_actr(name1: str):
85
  env.model2=ProceduralPlayer()
86
  env.model2.choice=env.choice2
87
  env.run()
88
- #print (response)
89
  #resu=logy()
90
- resulto=name1
91
- return resulto
92
 
93
  def load_data():
94
  db = sqlite3.connect(DB_FILE)
@@ -124,12 +124,12 @@ with gr.Blocks() as demo:
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, name1,name2)
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
+ def run_actr():
72
  from python_actr import log_everything
73
 
74
  #code1="tim = MyAgent()"
 
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)
 
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, name1,name2)
132
+ run_actr()
133
 
134
  def backup_db():
135
  shutil.copyfile(DB_FILE, "./reviews.2db")