llinahosna commited on
Commit
12f64ad
1 Parent(s): 8972bab

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Your AI model or function to generate images goes here
4
+ def generate_cookie_image(cookie_name):
5
+ # Replace this with your actual image generation logic
6
+ # For now, let's just return a placeholder image
7
+ return "https://via.placeholder.com/300x300"
8
+
9
+ # Create a Gradio interface
10
+ iface = gr.Interface(
11
+ fn=generate_cookie_image,
12
+ inputs="text",
13
+ outputs="image",
14
+ title="Cookie Run Character Generator",
15
+ description="Enter the name of a Cookie Run character to generate an image.",
16
+ )
17
+
18
+ # Launch the Gradio app
19
+ if __name__ == "__main__":
20
+ iface.launch()