laurenok24
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -223,44 +223,44 @@ def get_html_from_finedivingkey(first_folder, second_folder):
|
|
223 |
## gradio where we input a video ###
|
224 |
|
225 |
|
226 |
-
with gr.Blocks() as demo_new:
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
|
265 |
|
266 |
#### demo precomputed ########
|
|
|
223 |
## gradio where we input a video ###
|
224 |
|
225 |
|
226 |
+
# with gr.Blocks() as demo_new:
|
227 |
+
# gr.Markdown(
|
228 |
+
# """
|
229 |
+
# # NS-AQA
|
230 |
+
# This system takes in a diving video, and outputs a detailed report summarizing each component of the dive and how we evaluated it. We first abstract the necessary symbols, and then proceed to score the dive.\n
|
231 |
+
# Paper: *insert link to paper* \n
|
232 |
+
# Code: *insert github link*
|
233 |
+
# """)
|
234 |
|
235 |
+
# with gr.Row():
|
236 |
+
# with gr.Column():
|
237 |
+
# gr.Markdown(
|
238 |
+
# """
|
239 |
+
# ## Step 1: Abstract Symbols
|
240 |
+
# We first abstract the necessary visual elements from the provided diving video. This includes the platform, splash, and the pose estimation of the diver.
|
241 |
+
# """
|
242 |
+
# )
|
243 |
+
# video = gr.Video(label="Video", format="mp4", include_audio=False)
|
244 |
+
# abstract_symbols_btn = gr.Button("Abstract Symbols", variant='primary')
|
245 |
+
# symbol_output = gr.HTML(label="Output")
|
246 |
+
# examples = gr.Examples(examples = [['01_10.mp4'], ['01_11.mp4'], ['01_16.mp4'], ['01_33.mp4'], ['01_140.mp4']], inputs=[video])
|
247 |
+
|
248 |
+
# with gr.Row():
|
249 |
+
# gr.Markdown(
|
250 |
+
# """
|
251 |
+
# ## Step 2: Calculate Logic-Based Errors and Generate Detailed Score Report
|
252 |
+
# """
|
253 |
+
# )
|
254 |
+
# get_score_btn = gr.Button("Get Score", interactive=False, variant='secondary')
|
255 |
+
# score_report = gr.HTML(label="Output")
|
256 |
+
# # get_score_report_btn = gr.Button("Get Score Report")
|
257 |
+
# # video.change(fn=enable_get_score_btn, inputs=get_score_btn, outputs=get_score_btn)
|
258 |
+
# video.change(fn=disable_get_score_btn, inputs=get_score_btn, outputs=get_score_btn)
|
259 |
+
# video.change(fn=enable_get_score_btn, inputs=abstract_symbols_btn, outputs=abstract_symbols_btn)
|
260 |
+
# abstract_symbols_btn.click(fn=get_abstracted_symbols, inputs=video, outputs=symbol_output).success(fn=enable_get_score_btn, inputs=get_score_btn, outputs=get_score_btn)
|
261 |
+
# symbol_output.change(fn=disable_get_score_btn, inputs=abstract_symbols_btn, outputs=abstract_symbols_btn)
|
262 |
+
# symbol_output.change(fn=enable_get_score_btn, inputs=get_score_btn, outputs=get_score_btn)
|
263 |
+
# get_score_btn.click(fn=get_score_report, inputs=[video], outputs=score_report)
|
264 |
|
265 |
|
266 |
#### demo precomputed ########
|