import gradio as gr # The HTML content of the bird shooter game html_content = """ Bird Shooter Game
Score: 0
GAME OVER
""" def create_game(): return gr.HTML(html_content, height=650) # Create Gradio interface with gr.Blocks(title="Bird Shooter Game") as demo: gr.Markdown("# 🎮 Bird Shooter Game") gr.Markdown("Click on the birds to shoot them and score points!") game_interface = create_game() gr.Markdown(""" ## How to Play - Click on birds to shoot them - Each hit earns you 10 points - Try to get the highest score possible! ## About This is a simple bird shooter game created with SVG and JavaScript, embedded in a Gradio app for Hugging Face Spaces. """) # Launch the app if __name__ == "__main__": demo.launch()