Kvikontent commited on
Commit
1af3d03
1 Parent(s): cd42433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -11
app.py CHANGED
@@ -1,16 +1,12 @@
1
  import gradio as gr
2
 
3
  interface_options = {
4
- "layout": "vertical", # Set the layout to vertical to stack components vertically
5
- "width": "700px", # Set the width of the interface
6
- "show_input": True, # Show input section
7
- "show_output": True, # Show output section
8
- "style": {
9
- "fontFamily": "Arial, sans-serif", # Set the font family
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.load("models/succinctly/text2image-prompt-generator").launch(interface_options=interface_options)
 
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()