bluenevus commited on
Commit
b757958
·
verified ·
1 Parent(s): aa9cf49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -32,7 +32,7 @@ plastic, cartoonish, artificial, fake, unnatural
32
  app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
33
 
34
  app.layout = dbc.Container([
35
- html.H1("Insta-Image Maker", className="my-4"),
36
  dbc.Row([
37
  # Left column: Form entry
38
  dbc.Col([
@@ -41,7 +41,13 @@ app.layout = dbc.Container([
41
  dbc.Input(id="google-api-key", type="password", placeholder="Enter Google AI API Key", className="mb-3"),
42
  dbc.Input(id="stability-api-key", type="password", placeholder="Enter Stability AI API Key", className="mb-3"),
43
  dbc.Textarea(id="prompt", placeholder="Enter your prompt", className="mb-3"),
44
- dcc.Dropdown(id="style", options=[{"label": s, "value": s} for s in STYLES], placeholder="Select style", className="mb-3"),
 
 
 
 
 
 
45
  dbc.Button("Generate Image", id="submit-btn", color="primary", className="mb-3"),
46
  ])
47
  ], className="mb-4"),
 
32
  app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
33
 
34
  app.layout = dbc.Container([
35
+ html.H1("Simple Image Generator", className="my-4"),
36
  dbc.Row([
37
  # Left column: Form entry
38
  dbc.Col([
 
41
  dbc.Input(id="google-api-key", type="password", placeholder="Enter Google AI API Key", className="mb-3"),
42
  dbc.Input(id="stability-api-key", type="password", placeholder="Enter Stability AI API Key", className="mb-3"),
43
  dbc.Textarea(id="prompt", placeholder="Enter your prompt", className="mb-3"),
44
+ dcc.Dropdown(
45
+ id="style",
46
+ options=[{"label": s, "value": s} for s in STYLES],
47
+ value="Photorealistic", # Default to Photorealistic
48
+ placeholder="Select style",
49
+ className="mb-3"
50
+ ),
51
  dbc.Button("Generate Image", id="submit-btn", color="primary", className="mb-3"),
52
  ])
53
  ], className="mb-4"),