Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,18 @@ def process_video(video):
|
|
27 |
out.release()
|
28 |
return 'output.mp4'
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
html_content = """
|
32 |
<div style="text-align: center;">
|
33 |
<h1>Welcome to My Video Processing App</h1>
|
|
|
27 |
out.release()
|
28 |
return 'output.mp4'
|
29 |
|
30 |
+
# Define the title and description
|
31 |
+
title = "Welcome to My Video Processing App"
|
32 |
+
description = "Upload a video to process it using YOLOv5 and DeepSORT."
|
33 |
+
|
34 |
+
# Initialize Gradio interface with title and description
|
35 |
+
demo = gr.Interface(
|
36 |
+
fn=app_main,
|
37 |
+
inputs="video",
|
38 |
+
outputs="video",
|
39 |
+
title=title,
|
40 |
+
description=description
|
41 |
+
)
|
42 |
html_content = """
|
43 |
<div style="text-align: center;">
|
44 |
<h1>Welcome to My Video Processing App</h1>
|