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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
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():
72
  from python_actr import log_everything
73
 
74
  #code1="tim = MyAgent()"
@@ -87,7 +87,8 @@ def run_actr():
87
  env.run()
88
  #print (response)
89
  #resu=logy()
90
- #return resu
 
91
 
92
  def load_data():
93
  db = sqlite3.connect(DB_FILE)
@@ -123,7 +124,12 @@ with gr.Blocks() as demo:
123
  #return "Hello " + name + "!"
124
  with gr.Row():
125
  with gr.Column():
126
- run_actr()
 
 
 
 
 
127
 
128
  def backup_db():
129
  shutil.copyfile(DB_FILE, "./reviews.2db")
 
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()"
 
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
  #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")