Spaces:
Sleeping
Sleeping
Commit ·
4cbb5e8
1
Parent(s): bc7bea1
clean up
Browse files
app.py
CHANGED
|
@@ -372,24 +372,6 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
|
|
| 372 |
|
| 373 |
|
| 374 |
demo_inference = partial(inference, count_only_api=False, api_key=None)
|
| 375 |
-
|
| 376 |
-
# playlist_url = "https://hiemdall-dev2.azurewebsites.net/api/playlist/"
|
| 377 |
-
|
| 378 |
-
# stream_urls = [
|
| 379 |
-
# #f"{playlist_url}rec_v3v44xW3/vod",
|
| 380 |
-
# f"{playlist_url}rec_DA6NyTCw/vod",
|
| 381 |
-
# f"{playlist_url}rec_aY68fV8L/vod",
|
| 382 |
-
# f"{playlist_url}rec_d9W4ugUl/vod",
|
| 383 |
-
# f"{playlist_url}rec_rTxSIdcO/vod",
|
| 384 |
-
# f"{playlist_url}rec_rd2FAyUo/vod",
|
| 385 |
-
# ]
|
| 386 |
-
|
| 387 |
-
# gr.Examples(examples=[
|
| 388 |
-
# ['https://hiemdall-dev2.azurewebsites.net/api/playlist/rec_rd2FAyUo/vod', '00:43:10', '00:43:40'],
|
| 389 |
-
# ],
|
| 390 |
-
# inputs=[in_stream_url, in_stream_start, in_stream_end],
|
| 391 |
-
# outputs=[out_text, out_plot, out_hist, out_event_type_dist],
|
| 392 |
-
# fn=demo_inference, cache_examples=os.getenv('SYSTEM') == 'spaces')
|
| 393 |
|
| 394 |
run_button.click(demo_inference, [in_stream_url, in_stream_start, in_stream_end], outputs=[out_video, out_text, out_plot, out_hist, out_event_type_dist])
|
| 395 |
api_inference = partial(inference, api_call=True)
|
|
|
|
| 372 |
|
| 373 |
|
| 374 |
demo_inference = partial(inference, count_only_api=False, api_key=None)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 375 |
|
| 376 |
run_button.click(demo_inference, [in_stream_url, in_stream_start, in_stream_end], outputs=[out_video, out_text, out_plot, out_hist, out_event_type_dist])
|
| 377 |
api_inference = partial(inference, api_call=True)
|