Spaces:
Paused
Paused
Update app.py
Browse files
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("
|
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
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"),
|