Create an API to generate articles based on a provided document or website
a. Ensure the article contains only content from the specified document or website.
b. API input parameters:
i. Topic for the article.
ii. Document (can be a book or anything in pdf format).
iii. Article Language (English or Arabic). [means input language is 'Arabic' return arabic article , if it is in english then return article in english, for topic and document in any language(arabic/english)]
Create an API to generate articles based on a provided document or website a. Ensure the article contains only content from the specified document or website. b. API input parameters: i. Topic for the article. ii. Document (can be a book or anything in pdf format). iii. Article Language (English or Arabic). [means input language is 'Arabic' return arabic article , if it is in english then return article in english, for topic and document in any language(arabic/english)]
Hints: Flask application, python virtual environment