Skip to main content

create_api_file

Method
This is a method of the CloudDeployer class in the deploy module.
Creates an API file for the application.

Signature

def create_api_file() -> Any

Returns

Returns
Any
NoneThis method creates an API file named “api.py” in the current directory. The file contains a basic Flask application that uses the PraisonAI library to run a simple agent and returns the output as an HTML page. The application listens on the root path (”/”) and uses the Markdown library to format the output.