cryptocalypse commited on
Commit
ea8f244
1 Parent(s): bb1c140

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -12,11 +12,7 @@ with gr.Blocks(title="PSYCHOHISTORY") as app:
12
  img_output2 = gr.Image(label="Most likely", type="filepath")
13
  img_output3 = gr.Image(label="The slowest", type="filepath")
14
  # Trigger graph generation after JSON is generated
15
- mem_results.change(
16
- psychohistory.main,
17
- inputs=[mem_results],
18
- outputs=[img_output,img_output2,img_output3]
19
- )
20
  with gr.Row():
21
  mem_results = gr.JSON(label="Results")
22
  btn_search.click(
@@ -24,7 +20,11 @@ with gr.Blocks(title="PSYCHOHISTORY") as app:
24
  inputs=[txt_search],
25
  outputs=mem_results
26
  )
27
-
 
 
 
 
28
 
29
  if __name__ == "__main__":
30
  app.launch()
 
12
  img_output2 = gr.Image(label="Most likely", type="filepath")
13
  img_output3 = gr.Image(label="The slowest", type="filepath")
14
  # Trigger graph generation after JSON is generated
15
+
 
 
 
 
16
  with gr.Row():
17
  mem_results = gr.JSON(label="Results")
18
  btn_search.click(
 
20
  inputs=[txt_search],
21
  outputs=mem_results
22
  )
23
+ mem_results.change(
24
+ psychohistory.main,
25
+ inputs=[mem_results],
26
+ outputs=[img_output,img_output2,img_output3]
27
+ )
28
 
29
  if __name__ == "__main__":
30
  app.launch()