Suburst commited on
Commit
86e33d0
·
verified ·
1 Parent(s): dc01c99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -27,7 +27,18 @@ def process_video(video):
27
  out.release()
28
  return 'output.mp4'
29
 
30
- demo = gr.Interface(fn=app_main, inputs="video", outputs="video") # 300 秒超时
 
 
 
 
 
 
 
 
 
 
 
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>