Thomas Simonini commited on
Commit
b72ce67
·
1 Parent(s): f8a8b07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ def replay(model_id, filename, environment, evaluate):
49
  print(type(results))
50
  print(env)
51
  print(env.video_recorder.path)
52
- return results
53
 
54
 
55
  iface = gr.Interface(fn=replay, inputs=[
@@ -60,5 +60,5 @@ iface = gr.Interface(fn=replay, inputs=[
60
  ]
61
 
62
 
63
- , outputs="text")
64
  iface.launch()
 
49
  print(type(results))
50
  print(env)
51
  print(env.video_recorder.path)
52
+ return env.video_recorder.path
53
 
54
 
55
  iface = gr.Interface(fn=replay, inputs=[
 
60
  ]
61
 
62
 
63
+ , outputs="video")
64
  iface.launch()