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

fix issues

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -66,25 +66,22 @@ def create_app():
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
 
90
 
 
66
  file_types=[".npy"]
67
  )
68
 
 
 
69
  with gr.Row():
70
  visualize_btn = gr.Button("Visualize")
71
+ visualize_btn.click(
72
+ process_et_files,
73
+ inputs=[traj_file, char_file],
74
+ outputs=[et_viewer]
75
+ )
76
 
77
  with gr.Row():
78
+ et_viewer = Rerun(streaming=False)
79
 
80
  def process_et_files(traj_file, char_file):
81
  if traj_file is None or char_file is None:
82
  return None
83
  return visualize_et_data(traj_file.name, char_file.name)
84
 
 
 
 
 
 
 
85
  return demo
86
 
87