made the route for comment generation comment

instead of comments
This commit is contained in:
Karma Riuk
2025-05-14 22:01:12 +02:00
parent 28566ef37e
commit 2980f29bfa
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
<legend><strong>Upload Your Answers</strong></legend> <legend><strong>Upload Your Answers</strong></legend>
<label for="answer-cype">Type:</label> <label for="answer-cype">Type:</label>
<select id="answer-cype"> <select id="answer-cype">
<option value="comments">Comment Generation</option> <option value="comment">Comment Generation</option>
<option value="refinement">Code Refinement</option> <option value="refinement">Code Refinement</option>
</select> </select>
<br /><br /> <br /><br />

View File

@ -44,7 +44,7 @@ def validate_json_format_for_code_refinement(data: str) -> dict[str, dict[str, s
raise InvalidJsonFormatError() raise InvalidJsonFormatError()
@router.route('/submit/comments', methods=['POST']) @router.route('/submit/comment', methods=['POST'])
def submit_comments(): def submit_comments():
file = request.files.get('file') file = request.files.get('file')
if file is None or file.filename is None or file.filename.split('.')[-1] not in ALLOWED_EXT: if file is None or file.filename is None or file.filename.split('.')[-1] not in ALLOWED_EXT: