init
Browse files
app.py
CHANGED
|
@@ -33,6 +33,17 @@ def inference(prompt, guidance_scale, num_inference_steps):
|
|
| 33 |
return None
|
| 34 |
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
def app():
|
| 37 |
return gr.Interface(inference,
|
| 38 |
[gr.Textbox(
|
|
@@ -52,7 +63,9 @@ def app():
|
|
| 52 |
height=512,
|
| 53 |
width=512
|
| 54 |
)
|
| 55 |
-
, allow_flagging='never', title='Gen Image'
|
|
|
|
|
|
|
| 56 |
|
| 57 |
|
| 58 |
if __name__ == "__main__":
|
|
|
|
| 33 |
return None
|
| 34 |
|
| 35 |
|
| 36 |
+
example_prompts = [
|
| 37 |
+
"Illustrate the concept of 'serendipity' in a single image.",
|
| 38 |
+
"Create a visual representation of the phrase 'whispers of the autumn wind.'",
|
| 39 |
+
"Design an image capturing the essence of 'timeless wonder' in a mystical forest setting.",
|
| 40 |
+
"Visualize the emotions evoked by the words 'bittersweet symphony' in a unique artwork.",
|
| 41 |
+
"Craft an image that conveys the juxtaposition of 'urban chaos and tranquil solitude' in a futuristic cityscape.",
|
| 42 |
+
"Albert Einstein smoking, half body wide angle professional portrait photo, clear and detailed eyes, nature background at sunset, backlighting, fashion photography, centered, symmetrical, hasselblad helios 44-2 58mm F2, by Annie Leibovitz and Ellen von Unwerth"
|
| 43 |
+
]
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
def app():
|
| 48 |
return gr.Interface(inference,
|
| 49 |
[gr.Textbox(
|
|
|
|
| 63 |
height=512,
|
| 64 |
width=512
|
| 65 |
)
|
| 66 |
+
, allow_flagging='never', title='Gen Image',
|
| 67 |
+
examples=example_prompts
|
| 68 |
+
)
|
| 69 |
|
| 70 |
|
| 71 |
if __name__ == "__main__":
|