I'm in my pset7, similarities. Python part of compare works without any issues. But when i check web page with flask, when i click submit, it shows a 400 error. I could not find where the error is.
Attached the index file. Thanks.
<div class="col">
<form action="/compare" enctype="multipart/form-data" method="post">
<input type="file" id="file1">
<br>
<input type="file" id="file2">
<br>
<input type="radio" name="algorithm" value="lines" checked> Compare lines<br>
<input type="radio" name="algorithm" value="sentences"> Compare sentences<br>
<input type="radio" name="algorithm" value="substrings"> Compare substrings<br>
<input type="number" min="1" name="length"> Enter the length of substring<br>
<button type="submit"> Compare </button><br>
</form>
</div>