Suburst commited on
Commit
4c57523
·
verified ·
1 Parent(s): 5e49edd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -14
app.py CHANGED
@@ -45,20 +45,23 @@ with gr.Blocks(css=css) as demo:
45
  title=title,
46
  description=description
47
  )
48
- gr.Markdown("""
49
- # Welcome to My Neuroscience Project
50
- The author is a third-year undergraduate student at the School of Intelligent Science and Technology, Nanjing University, Suzhou Campus.
51
- ## Note
52
- <div style="border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 10px; background-color: rgba(255, 255, 255, 0.8); padding: 20px;">
53
- Since this project uses Hugging Face's free CPU, the processing speed is very slow. In the worst case, even a video with a dozen frames can take several minutes to process. Therefore, if possible, it is recommended to deploy on a device with a better GPU.
54
- Although the YOLOv5 model supports up to 80 classes, my project is primarily focused on autonomous driving. Therefore, objects other than people and cars will be excluded after object detection.
55
- </div>
56
- <div style="border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 10px; background-color: rgba(255, 255, 255, 0.8); padding: 20px;">
57
- **Tips for First-Time Users:**
58
- - Ensure that the video includes at least people and cars.
59
- - It's recommended that the video is not too long, ideally within 10 seconds.
60
- </div>
61
- """)
 
 
 
62
 
63
  with gr.Row():
64
  gr.HTML('<div class="video-container">')
 
45
  title=title,
46
  description=description
47
  )
48
+ gr.HTML("""
49
+ <h1>Welcome to My Neuroscience Project</h1>
50
+ <p>The author is a third-year undergraduate student at the School of Intelligent Science and Technology, Nanjing University, Suzhou Campus.</p>
51
+ <h2>Note</h2>
52
+ <div style="border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 10px; background-color: rgba(255, 255, 255, 0.8); padding: 20px;">
53
+ <p>Since this project uses Hugging Face's free CPU, the processing speed is very slow. In the worst case, even a video with a dozen frames can take several minutes to process. Therefore, if possible, it is recommended to deploy on a device with a better GPU.</p>
54
+ <p>Although the YOLOv5 model supports up to 80 classes, my project is primarily focused on autonomous driving. Therefore, objects other than people and cars will be excluded after object detection.</p>
55
+ </div>
56
+ <div style="border: 2px solid rgba(0, 0, 0, 0.1); border-radius: 10px; background-color: rgba(255, 255, 255, 0.8); padding: 20px;">
57
+ <h3>Tips for First-Time Users:</h3>
58
+ <ul>
59
+ <li>Ensure that the video includes at least people and cars.</li>
60
+ <li>It's recommended that the video is not too long, ideally within 10 seconds.</li>
61
+ </ul>
62
+ </div>
63
+ """)
64
+
65
 
66
  with gr.Row():
67
  gr.HTML('<div class="video-container">')