Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ with gr.Blocks(theme="soft") as demo:
|
|
| 108 |
run_button = gr.Button("Generate Image")
|
| 109 |
gr.Markdown("Developed using the DeepFloyd/IF-I-XL-v1.0 or RealVisXL_V5.0_Lightning model.", elem_id="model_info")
|
| 110 |
with gr.Column(scale=7):
|
| 111 |
-
result = gr.Image(label="Generated Image", type="
|
| 112 |
|
| 113 |
run_button.click(
|
| 114 |
fn=generate,
|
|
@@ -116,4 +116,22 @@ with gr.Blocks(theme="soft") as demo:
|
|
| 116 |
outputs=[result],
|
| 117 |
)
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
demo.launch()
|
|
|
|
| 108 |
run_button = gr.Button("Generate Image")
|
| 109 |
gr.Markdown("Developed using the DeepFloyd/IF-I-XL-v1.0 or RealVisXL_V5.0_Lightning model.", elem_id="model_info")
|
| 110 |
with gr.Column(scale=7):
|
| 111 |
+
result = gr.Image(label="Generated Image", type="filepath")
|
| 112 |
|
| 113 |
run_button.click(
|
| 114 |
fn=generate,
|
|
|
|
| 116 |
outputs=[result],
|
| 117 |
)
|
| 118 |
|
| 119 |
+
# Footer with custom style and text
|
| 120 |
+
gr.Markdown("""
|
| 121 |
+
<style>
|
| 122 |
+
.footer {
|
| 123 |
+
position: relative;
|
| 124 |
+
left: 0;
|
| 125 |
+
bottom: 0;
|
| 126 |
+
width: 100%;
|
| 127 |
+
background-color: white;
|
| 128 |
+
color: black;
|
| 129 |
+
text-align: center;
|
| 130 |
+
}
|
| 131 |
+
</style>
|
| 132 |
+
<div class="footer">
|
| 133 |
+
<p>Developed with ❤ by Aklavya(Bucky)</p>
|
| 134 |
+
</div>
|
| 135 |
+
""")
|
| 136 |
+
|
| 137 |
demo.launch()
|