I have a simple UI like below:
when clicks on submit, it redirects to another route/url. But it takes a little bit time to load the next page cause when I click the submit button, in the backed, it runs few machine learning models.
Now, during this loading and processing time, I want to display a page loading GIF. During the display of page loading, I want my form to fade away and only display the GIF in the middle of the page.
I have tried different ways to do it, but seems it's not working perfectly.
The form submission code:
<form class="form-signin" id="myform" action="data" method="post" enctype="multipart/form-data">
<p class="form-signin-heading">upload input sample in csv format to run the model inference</p>
<input class="form-control-file" type="file" name="upload-file" value="">
<input class="form-control-file" type="submit" name="" value="Submit">
</form>
Any help?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…