Spaces:
Sleeping
Sleeping
Yichuan Huang
commited on
reformat app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
from viewer import show_videos_and_scores
|
| 3 |
|
| 4 |
# Define the Gradio interface
|
|
@@ -6,9 +7,15 @@ interface = gr.Interface(
|
|
| 6 |
fn=show_videos_and_scores,
|
| 7 |
inputs=[],
|
| 8 |
outputs=[
|
| 9 |
-
gr.Video(
|
|
|
|
|
|
|
|
|
|
| 10 |
gr.Textbox(label="Final Model Score", value="902.5"),
|
| 11 |
-
gr.Video(
|
|
|
|
|
|
|
|
|
|
| 12 |
gr.Textbox(label="Best Model Score", value="919.9"),
|
| 13 |
],
|
| 14 |
title="Car Racing Videos Demo",
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
|
| 3 |
from viewer import show_videos_and_scores
|
| 4 |
|
| 5 |
# Define the Gradio interface
|
|
|
|
| 7 |
fn=show_videos_and_scores,
|
| 8 |
inputs=[],
|
| 9 |
outputs=[
|
| 10 |
+
gr.Video(
|
| 11 |
+
label="Final Model Video",
|
| 12 |
+
value="./rendered_videos/car_racing_final_model.avi",
|
| 13 |
+
),
|
| 14 |
gr.Textbox(label="Final Model Score", value="902.5"),
|
| 15 |
+
gr.Video(
|
| 16 |
+
label="Best Model Video",
|
| 17 |
+
value="./rendered_videos/car_racing_best_model.avi",
|
| 18 |
+
),
|
| 19 |
gr.Textbox(label="Best Model Score", value="919.9"),
|
| 20 |
],
|
| 21 |
title="Car Racing Videos Demo",
|