Spaces:
Runtime error
Runtime error
Commit
·
bf692e3
1
Parent(s):
97e94df
Update app.py
Browse files
app.py
CHANGED
@@ -56,6 +56,7 @@ def replay(model_id, filename, environment, evaluate):
|
|
56 |
videoclip.write_videofile("new_filename.mp4")
|
57 |
return 'new_filename.mp4', results
|
58 |
|
|
|
59 |
|
60 |
|
61 |
iface = gr.Interface(fn=replay, inputs=[
|
@@ -66,5 +67,5 @@ iface = gr.Interface(fn=replay, inputs=[
|
|
66 |
]
|
67 |
|
68 |
|
69 |
-
, outputs=["video", "text"], enable_queue=True)
|
70 |
iface.launch()
|
|
|
56 |
videoclip.write_videofile("new_filename.mp4")
|
57 |
return 'new_filename.mp4', results
|
58 |
|
59 |
+
examples = [["ThomasSimonini/ppo-QbertNoFrameskip-v4", "ppo-QbertNoFrameskip-v4.zip", "QbertNoFrameskip-v4", True]]
|
60 |
|
61 |
|
62 |
iface = gr.Interface(fn=replay, inputs=[
|
|
|
67 |
]
|
68 |
|
69 |
|
70 |
+
, outputs=["video", "text"], enable_queue=True, examples=examples)
|
71 |
iface.launch()
|