Spaces:
Sleeping
Sleeping
quantumiracle-git
commited on
Commit
·
1955e12
1
Parent(s):
268cf8f
Update app.py
Browse files
app.py
CHANGED
@@ -195,14 +195,14 @@ def build_interface(iter=3, data_folder=VIDEO_PATH):
|
|
195 |
global last_infer_right_video_path
|
196 |
last_infer_right_video_path = infer_right_video_path
|
197 |
|
198 |
-
btn1 = gr.Button("Replay")
|
199 |
user_choice = gr.Radio(["Left", "Right", "Not Sure"], label="Which one is your favorite?")
|
200 |
btn2 = gr.Button("Next")
|
201 |
|
202 |
# This needs to be called at some point prior to the first call to callback.flag()
|
203 |
callback.setup([user_choice, left, right], "flagged_data_points")
|
204 |
|
205 |
-
btn1.click(fn=replay, inputs=[left, right], outputs=[left, right])
|
206 |
btn2.click(fn=update, inputs=[user_choice, left, right], outputs=[left, right])
|
207 |
|
208 |
# We can choose which components to flag -- in this case, we'll flag all of them
|
|
|
195 |
global last_infer_right_video_path
|
196 |
last_infer_right_video_path = infer_right_video_path
|
197 |
|
198 |
+
# btn1 = gr.Button("Replay")
|
199 |
user_choice = gr.Radio(["Left", "Right", "Not Sure"], label="Which one is your favorite?")
|
200 |
btn2 = gr.Button("Next")
|
201 |
|
202 |
# This needs to be called at some point prior to the first call to callback.flag()
|
203 |
callback.setup([user_choice, left, right], "flagged_data_points")
|
204 |
|
205 |
+
# btn1.click(fn=replay, inputs=[left, right], outputs=[left, right])
|
206 |
btn2.click(fn=update, inputs=[user_choice, left, right], outputs=[left, right])
|
207 |
|
208 |
# We can choose which components to flag -- in this case, we'll flag all of them
|