Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from PIL import Image
|
3 |
+
|
4 |
+
# Create a Gradio interface
|
5 |
+
iface = gr.Interface(
|
6 |
+
fn=generate_gradio_images, # Set to None since we won't use a function
|
7 |
+
inputs=[
|
8 |
+
gr.Textbox("Enter Prompt")
|
9 |
+
],
|
10 |
+
outputs=gr.Image() # Gradio Image component for displaying images
|
11 |
+
)
|
12 |
+
|
13 |
+
# Launch the Gradio interface
|
14 |
+
iface.launch()
|