Cricket Player Finder

 import os
from flask import Flask, request, render_template_string
from abilities import llm_prompt

app = Flask(__name__)

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Favorite Cricket Player Predictor</title>
        body, html {
            height: 100%;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: Arial, sans-serif;
        .container {
            text-align: center;

About this template

The Cricket Player Finder app helps users discover their favorite cricket player.

Introduction to the Cricket Player Finder Template

Welcome to the Cricket Player Finder app template! This template is designed to help you create an application that predicts a user's favorite cricket player based on their preferred cricket position. The app uses a simple web interface where users can input their favorite cricket position, and the app will display a prediction of their favorite cricket player.

Getting Started

To begin using this template, click on the "Start with this Template" button. This will set up the template in your Lazy builder interface, pre-populating the code so you can start customizing and deploying your app without the need to copy or paste any code.

Test: Deploying the App

Once you have the template set up, press the "Test" button to begin the deployment of your app. The Lazy CLI will handle the deployment process, and you won't need to worry about installing libraries or setting up your environment.

Entering Input

After pressing the "Test" button, if the app requires any user input, the Lazy App's CLI interface will prompt you to provide it. In this template, the user input will be the cricket position that the user enters on the web interface, so no additional CLI input is required at this stage.

Using the App

Once the app is deployed, Lazy will provide you with a dedicated server link. You can use this link to access the web interface of your Cricket Player Finder app. Here's how to use the interface:

  • Visit the provided server link in your web browser.
  • You will see a form asking for your favorite cricket position.
  • Enter the cricket position in the text field and submit the form.
  • The app will then display a prediction of your favorite cricket player based on the input you provided.

Integrating the App

If you wish to integrate this app into another service or frontend, you may need to use the server link provided by Lazy. For example, you could embed the link in an iframe on your website or provide it as a link for users to access the Cricket Player Finder directly.

There are no additional external integration steps required for this template, as it is a standalone web application. However, if you plan to extend the app's functionality or integrate it with other platforms, you may need to consider the appropriate steps for those specific services.

Remember, this template is a starting point, and you can customize it further to fit your needs. Enjoy building with Lazy!

Last published
July 20, 2024

More templates like this

MP3ify: Youtube to MP3 Converter

A web application that allows users to download YouTube videos from URLs and provides the option to convert them to MP3 format.


Discord Moderation Bot

The Discord bot monitors all messages in the server. If a message contains profanity, the bot deletes it and sends a warning to the channel. The bot also notifies the host about the deletion via a direct message. Additionally, the bot outputs a helpful error message to a channel if there is a permissions error, guiding the server admin to enable the required permission in the Discord Developer portal.


Streamlit app with sample data

A basic streamlit web app starting point

Cricket Player Finder