Spaces:
Running
on
Zero
Running
on
Zero
fix
Browse files
app.py
CHANGED
@@ -78,6 +78,17 @@ if __name__ == '__main__':
|
|
78 |
action_stride=1,
|
79 |
domain='language_table',
|
80 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
with gr.Blocks() as demo:
|
82 |
with gr.Row():
|
83 |
image_selector = gr.Dropdown(
|
@@ -95,17 +106,7 @@ if __name__ == '__main__':
|
|
95 |
down = gr.Button("β Down")
|
96 |
right = gr.Button("β Right")
|
97 |
|
98 |
-
|
99 |
-
image = Image.open("sim/assets/langtable_prompt/frame_06.png")
|
100 |
-
prompt_image = np.tile(
|
101 |
-
np.array(image), (genie.prompt_horizon, 1, 1, 1)
|
102 |
-
).astype(np.uint8)
|
103 |
-
prompt_action = np.zeros(
|
104 |
-
(genie.prompt_horizon, genie.action_stride, 2)
|
105 |
-
).astype(np.float32)
|
106 |
-
|
107 |
-
genie.set_initial_state((prompt_image, prompt_action))
|
108 |
-
image = genie.reset()
|
109 |
|
110 |
# Define interactions
|
111 |
select_button.click(
|
|
|
78 |
action_stride=1,
|
79 |
domain='language_table',
|
80 |
)
|
81 |
+
image = Image.open("sim/assets/langtable_prompt/frame_06.png")
|
82 |
+
prompt_image = np.tile(
|
83 |
+
np.array(image), (genie.prompt_horizon, 1, 1, 1)
|
84 |
+
).astype(np.uint8)
|
85 |
+
prompt_action = np.zeros(
|
86 |
+
(genie.prompt_horizon, genie.action_stride, 2)
|
87 |
+
).astype(np.float32)
|
88 |
+
|
89 |
+
genie.set_initial_state((prompt_image, prompt_action))
|
90 |
+
image = genie.reset()
|
91 |
+
|
92 |
with gr.Blocks() as demo:
|
93 |
with gr.Row():
|
94 |
image_selector = gr.Dropdown(
|
|
|
106 |
down = gr.Button("β Down")
|
107 |
right = gr.Button("β Right")
|
108 |
|
109 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
# Define interactions
|
112 |
select_button.click(
|