davidberenstein1957 commited on
Commit
a32bb1a
·
1 Parent(s): a0ae60c

Update examples

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -31,11 +31,20 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_in
31
  return image, seed
32
 
33
  examples = [
34
- "a tiny astronaut hatching from an egg on the moon",
35
- "a cat holding a sign that says hello world",
36
- "an anime illustration of a wiener schnitzel",
37
  ]
38
 
 
 
 
 
 
 
 
 
 
39
  css = """
40
  #col-container {
41
  margin: 0 auto;
 
31
  return image, seed
32
 
33
  examples = [
34
+ ["a tiny astronaut hatching from an egg on the moon", 0, True, 1024, 1024, 4],
35
+ ["a cat holding a sign that says hello world", 0, True, 1024, 1024, 4],
36
+ ["an anime illustration of a wiener schnitzel", 0, True, 1024, 1024, 4],
37
  ]
38
 
39
+ # ... (rest of the code remains the same)
40
+
41
+ interface = gr.Interface(
42
+ fn=infer,
43
+ inputs=[
44
+ gr.Textbox(label="Prompt", placeholder="Enter your prompt"),
45
+ gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0),
46
+ gr.Checkbox(label="Randomize seed", value=True),
47
+ gr.Slider(label="Width", minimum=256, maximum=MAX_IMAGE_SIZE, step=32, value
48
  css = """
49
  #col-container {
50
  margin: 0 auto;