PseudoTerminal X commited on
Commit
fbe4ed2
1 Parent(s): 9c9d224

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -6
app.py CHANGED
@@ -56,13 +56,47 @@ def generate(prompt, stage1_guidance_scale, stage2_guidance_scale, num_inference
56
 
57
  # Example prompts to demonstrate the model's capabilities
58
  example_prompts = [
59
- ["A futuristic cityscape at night under a starry sky", 3.5, 4.5, 25, "blurry, overexposed", "1152x896"],
60
- ["A serene landscape with a flowing river and autumn trees", 3.0, 4.0, 20, "crowded, noisy", "1152x896"],
61
- ["An abstract painting of joy and energy in bright colors", 3.0, 4.5, 30, "dark, dull", "896x1152"],
62
- ["a stunning portrait of a hamster with an eye patch, piloting a miniature cessna on a wooden desk in an office, depth of field, bokeh, sharp, f1.4", 3.2, 4.6, 40, "this is an ugly photograph that no one liked", "1024x1024"],
63
- ["Check out my cousin larry in his dirty room, he is such a damn mess", 3.2, 4.6, 40, "the photograph is blurry and unremarkable", "1152x896"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  ]
65
-
66
  # Create a Gradio interface, 1024x1024,1152x960,896x1152
67
  iface = gr.Interface(
68
  fn=generate,
 
56
 
57
  # Example prompts to demonstrate the model's capabilities
58
  example_prompts = [
59
+ [
60
+ "A futuristic cityscape at night under a starry sky",
61
+ 3.5,
62
+ 4.5,
63
+ 25,
64
+ "1152x960",
65
+ "blurry, overexposed"
66
+ ],
67
+ [
68
+ "A serene landscape with a flowing river and autumn trees",
69
+ 3.0,
70
+ 4.0,
71
+ 20,
72
+ "1152x960",
73
+ "crowded, noisy"
74
+ ],
75
+ [
76
+ "An abstract painting of joy and energy in bright colors",
77
+ 3.0,
78
+ 4.5,
79
+ 30,
80
+ "896x1152",
81
+ "dark, dull"
82
+ ],
83
+ [
84
+ "a stunning portrait of a hamster with an eye patch, piloting a miniature cessna on a wooden desk in an office, depth of field, bokeh, sharp, f1.4",
85
+ 3.2,
86
+ 4.6,
87
+ 40,
88
+ "1024x1024",
89
+ "this is an ugly photograph that no one liked"
90
+ ],
91
+ [
92
+ "Check out my cousin larry in his dirty room, he is such a damn mess",
93
+ 3.2,
94
+ 4.6,
95
+ 40,
96
+ "1152x960",
97
+ "the photograph is blurry and unremarkable"
98
+ ]
99
  ]
 
100
  # Create a Gradio interface, 1024x1024,1152x960,896x1152
101
  iface = gr.Interface(
102
  fn=generate,