abreza commited on
Commit
9d030c4
1 Parent(s): 9ae872c

fix some small issues

Browse files
Files changed (1) hide show
  1. app.py +13 -10
app.py CHANGED
@@ -66,21 +66,24 @@ def create_app():
66
  file_types=[".npy"]
67
  )
68
 
69
- def process_et_files(traj_file, char_file):
70
- if traj_file is None or char_file is None:
71
- return None
72
- return visualize_et_data(traj_file.name, char_file.name)
73
 
74
  with gr.Row():
75
  visualize_btn = gr.Button("Visualize")
76
- visualize_btn.click(
77
- process_et_files,
78
- inputs=[traj_file, char_file],
79
- outputs=[et_viewer]
80
- )
81
 
82
  with gr.Row():
83
- et_viewer = Rerun(streaming=False)
 
 
 
 
 
 
 
 
 
 
 
84
 
85
  return demo
86
 
 
66
  file_types=[".npy"]
67
  )
68
 
69
+ et_viewer = Rerun(streaming=False)
 
 
 
70
 
71
  with gr.Row():
72
  visualize_btn = gr.Button("Visualize")
 
 
 
 
 
73
 
74
  with gr.Row():
75
+ et_viewer.render()
76
+
77
+ def process_et_files(traj_file, char_file):
78
+ if traj_file is None or char_file is None:
79
+ return None
80
+ return visualize_et_data(traj_file.name, char_file.name)
81
+
82
+ visualize_btn.click(
83
+ process_et_files,
84
+ inputs=[traj_file, char_file],
85
+ outputs=[et_viewer]
86
+ )
87
 
88
  return demo
89