Spaces:
Runtime error
Runtime error
Add Gradio example boxes
#1
by
xianbao
HF staff
- opened
app.py
CHANGED
@@ -96,6 +96,14 @@ with gr.Blocks(title="PeRFlow-SDXL", css=css) as interface:
|
|
96 |
# with gr.Row():
|
97 |
output_image = gr.Image(label='Generated Image')
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
gr.Markdown(
|
100 |
"""
|
101 |
Here are some examples provided:
|
|
|
96 |
# with gr.Row():
|
97 |
output_image = gr.Image(label='Generated Image')
|
98 |
|
99 |
+
example_inputs = [
|
100 |
+
["masterpiece, A closeup face photo of girl, wearing a rain coat, in the street, heavy rain, bokeh", 6, 2.0, 42],
|
101 |
+
["RAW photo, a handsome man, wearing a black coat, outside, closeup face", 5, 1.5, 35],
|
102 |
+
["RAW photo, a red luxury car, studio light", 7, 2.5, 30],
|
103 |
+
["masterpiece, A beautiful cat bask in the sun", 4, 2.0, 25]
|
104 |
+
]
|
105 |
+
examples = gr.Examples(examples=example_inputs, inputs=[text, num_inference_steps, cfg_scale, seed], outputs=[output_image])
|
106 |
+
|
107 |
gr.Markdown(
|
108 |
"""
|
109 |
Here are some examples provided:
|