DESSEP commited on
Commit
ea41815
·
verified ·
1 Parent(s): bf1d37a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -52,9 +52,13 @@ def infer(
52
 
53
 
54
  examples = [
55
- "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
56
- "An astronaut riding a green horse",
 
 
57
  "A delicious ceviche cheesecake slice",
 
 
58
  ]
59
 
60
  css = """
@@ -86,7 +90,7 @@ with gr.Blocks(css=css) as demo:
86
  label="Negative prompt",
87
  max_lines=1,
88
  placeholder="Enter a negative prompt",
89
- visible=False,
90
  )
91
 
92
  seed = gr.Slider(
@@ -105,7 +109,7 @@ with gr.Blocks(css=css) as demo:
105
  minimum=256,
106
  maximum=MAX_IMAGE_SIZE,
107
  step=32,
108
- value=1024, # Replace with defaults that work for your model
109
  )
110
 
111
  height = gr.Slider(
@@ -113,7 +117,7 @@ with gr.Blocks(css=css) as demo:
113
  minimum=256,
114
  maximum=MAX_IMAGE_SIZE,
115
  step=32,
116
- value=1024, # Replace with defaults that work for your model
117
  )
118
 
119
  with gr.Row():
@@ -122,7 +126,7 @@ with gr.Blocks(css=css) as demo:
122
  minimum=0.0,
123
  maximum=10.0,
124
  step=0.1,
125
- value=0.0, # Replace with defaults that work for your model
126
  )
127
 
128
  num_inference_steps = gr.Slider(
@@ -130,7 +134,7 @@ with gr.Blocks(css=css) as demo:
130
  minimum=1,
131
  maximum=50,
132
  step=1,
133
- value=2, # Replace with defaults that work for your model
134
  )
135
 
136
  gr.Examples(examples=examples, inputs=[prompt])
 
52
 
53
 
54
  examples = [
55
+ "Professional Photo <Astronaut in a jungle>",
56
+ "Cute anime Girl",
57
+ "A high tech solarpunk utopia in the Amazon rainforest",
58
+ "An insect robot preparing a delicious meal",
59
  "A delicious ceviche cheesecake slice",
60
+ "An astronaut riding a green horse",
61
+
62
  ]
63
 
64
  css = """
 
90
  label="Negative prompt",
91
  max_lines=1,
92
  placeholder="Enter a negative prompt",
93
+ visible=True,
94
  )
95
 
96
  seed = gr.Slider(
 
109
  minimum=256,
110
  maximum=MAX_IMAGE_SIZE,
111
  step=32,
112
+ value=768, # Replace with defaults that work for your model
113
  )
114
 
115
  height = gr.Slider(
 
117
  minimum=256,
118
  maximum=MAX_IMAGE_SIZE,
119
  step=32,
120
+ value=768, # Replace with defaults that work for your model
121
  )
122
 
123
  with gr.Row():
 
126
  minimum=0.0,
127
  maximum=10.0,
128
  step=0.1,
129
+ value=4.5, # Replace with defaults that work for your model
130
  )
131
 
132
  num_inference_steps = gr.Slider(
 
134
  minimum=1,
135
  maximum=50,
136
  step=1,
137
+ value=24, # Replace with defaults that work for your model
138
  )
139
 
140
  gr.Examples(examples=examples, inputs=[prompt])