llinahosna's picture
Create app.py
12f64ad verified
raw
history blame contribute delete
No virus
599 Bytes
import gradio as gr
# Your AI model or function to generate images goes here
def generate_cookie_image(cookie_name):
# Replace this with your actual image generation logic
# For now, let's just return a placeholder image
return "https://via.placeholder.com/300x300"
# Create a Gradio interface
iface = gr.Interface(
fn=generate_cookie_image,
inputs="text",
outputs="image",
title="Cookie Run Character Generator",
description="Enter the name of a Cookie Run character to generate an image.",
)
# Launch the Gradio app
if __name__ == "__main__":
iface.launch()