Spaces:
Runtime error
Runtime error
Commit
·
1af3d03
1
Parent(s):
cd42433
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,16 +1,12 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
interface_options = {
|
| 4 |
-
"layout": "vertical",
|
| 5 |
-
"width":
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
|
| 10 |
-
"backgroundColor": "#f4f4f4", # Set the background color
|
| 11 |
-
"padding": "20px", # Add padding to the interface
|
| 12 |
-
"border": "1px solid #ccc", # Add a border
|
| 13 |
-
}
|
| 14 |
}
|
| 15 |
|
| 16 |
-
gr.Interface.
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
interface_options = {
|
| 4 |
+
"layout": "vertical",
|
| 5 |
+
"width": 700,
|
| 6 |
+
"title": "Text to Image Prompt Generator",
|
| 7 |
+
"description": "Generate beautiful images from text prompts.",
|
| 8 |
+
"inputs": gr.inputs.Textbox(),
|
| 9 |
+
"outputs": gr.outputs.Image()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
|
| 12 |
+
gr.Interface.fn("models/succinctly/text2image-prompt-generator", interface_options=interface_options).launch()
|