You are on page 1of 1

Create a django/flask app to do the following tasks on various endpoints:

1. check duplicate letters from input. It must accept a string, i.e., a sentence. The function should return True if
the sentence has any word with duplicate letters, else return False. 

url: /check_duplicate, Method: GET

2. Write an endpoint that takes a non-negative number as its only parameter. Your function should
convert the number to a string and add commas as a thousand separators. For example, calling
format_number(1000000) should return "1,000,000". 

URl: /commas, Method: POST

3. Make an endpoint to upload the file and read it and calculate number of words in column
Model-1 and Model-2.
Format the json output like this

“data”:[

“title”: “Jizza”,

“description”: “hair trimmer”,

“tone”: “Excited”,

“numModel1”: 172,

“numModel2”: 443

You might also like