Kaelan commited on
Commit
96aed57
·
1 Parent(s): 6607c67
Files changed (2) hide show
  1. public/index.html +1 -1
  2. src/App.js +3 -2
public/index.html CHANGED
@@ -74,7 +74,7 @@
74
 
75
  <div class="col">
76
  <h1>RESULT</h1>
77
-
78
  {% if predictions and ft=='video': %}
79
  <video class="border border-secondary" controls autoplay><source src={{saved_outout}} type="video/mp4" height='680' width='680' name={{predictions}}></video>
80
  {% elif predictions and ft=='image': %}
 
74
 
75
  <div class="col">
76
  <h1>RESULT</h1>
77
+ <p>Video will take a minute or more to process. Upload images for faster processing </p>
78
  {% if predictions and ft=='video': %}
79
  <video class="border border-secondary" controls autoplay><source src={{saved_outout}} type="video/mp4" height='680' width='680' name={{predictions}}></video>
80
  {% elif predictions and ft=='image': %}
src/App.js CHANGED
@@ -81,13 +81,14 @@ function App() {
81
  <input class="form-control" type='file' id="formFile" accepts='image/*, video/*' capture='camera' name='media'
82
  onChange={uploadImage}/>
83
 
84
- {imageURL1 && <button type="submit" class="btn btn-dark" value='SubmiT' >DETECT FALL(Please wait.Might take a while)</button>}
85
  </div>
86
 
87
  </form>
88
  <br></br>
89
  <div>
90
  <form action="/upload" enctype="multipart/form-data" method="post" id='uploadselect'>
 
91
  <select name="options" class="form-select" aria-label="Default select example" onChange={uploadName}>
92
  <option selected>Open this select menu</option>
93
  <option value="skate.mp4">Skate and Fall</option>
@@ -96,7 +97,7 @@ function App() {
96
  <option value="cafe_fall.mp4">Fall in workplace</option>
97
  <option value="studycam.mp4">Fall experiment</option>
98
  </select>
99
- {imageURL2 && <button type="submit" class="btn btn-dark" value='SubmiT' >DETECT FALL (Please wait. Might take a while )</button>}
100
  </form>
101
  </div>
102
  </div>
 
81
  <input class="form-control" type='file' id="formFile" accepts='image/*, video/*' capture='camera' name='media'
82
  onChange={uploadImage}/>
83
 
84
+ {imageURL1 && <button type="submit" class="btn btn-dark" value='SubmiT' >DETECT FALL </button>}
85
  </div>
86
 
87
  </form>
88
  <br></br>
89
  <div>
90
  <form action="/upload" enctype="multipart/form-data" method="post" id='uploadselect'>
91
+ <label >Sample videos</label>
92
  <select name="options" class="form-select" aria-label="Default select example" onChange={uploadName}>
93
  <option selected>Open this select menu</option>
94
  <option value="skate.mp4">Skate and Fall</option>
 
97
  <option value="cafe_fall.mp4">Fall in workplace</option>
98
  <option value="studycam.mp4">Fall experiment</option>
99
  </select>
100
+ {imageURL2 && <button type="submit" class="btn btn-dark" value='SubmiT' >DETECT FALL </button>}
101
  </form>
102
  </div>
103
  </div>