Gen-Sim commited on
Commit
e9f717b
·
1 Parent(s): 4f5cd05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -85,7 +85,7 @@ class DemoRunner:
85
  # self._env.cache_video = []
86
  self.simulation_runner._md_logger = ''
87
  # progress(0.2)
88
- yield "Task Generating ==>", None, None
89
  yield from self.simulation_runner.task_creation()
90
  yield from self.simulation_runner.simulate_task()
91
 
@@ -169,6 +169,7 @@ if __name__ == '__main__':
169
  with gr.Column(scale=1, min_width=400):
170
  progress = gr.Markdown(label='Progress')
171
  generated_task = gr.Markdown(label='Generated Task')
 
172
  generated_asset = gr.Markdown(label='Generated Asset')
173
  generated_code = gr.Code(label='Generated Code', language="python", interactive=True)
174
  video_run = gr.Video(label='Video of Simulation', autoplay=True)
@@ -180,7 +181,7 @@ if __name__ == '__main__':
180
  btn_run.click(
181
  run,
182
  inputs=[inp_instruction, state],
183
- outputs=[progress, generated_code, video_run]
184
  )
185
 
186
  btn_example_run.click(
 
85
  # self._env.cache_video = []
86
  self.simulation_runner._md_logger = ''
87
  # progress(0.2)
88
+ yield "Task Generating ==>", "",None, None
89
  yield from self.simulation_runner.task_creation()
90
  yield from self.simulation_runner.simulate_task()
91
 
 
169
  with gr.Column(scale=1, min_width=400):
170
  progress = gr.Markdown(label='Progress')
171
  generated_task = gr.Markdown(label='Generated Task')
172
+ log = gr.HTML(label='Log')
173
  generated_asset = gr.Markdown(label='Generated Asset')
174
  generated_code = gr.Code(label='Generated Code', language="python", interactive=True)
175
  video_run = gr.Video(label='Video of Simulation', autoplay=True)
 
181
  btn_run.click(
182
  run,
183
  inputs=[inp_instruction, state],
184
+ outputs=[progress, log, generated_code, video_run]
185
  )
186
 
187
  btn_example_run.click(