Aklavya commited on
Commit
398ca64
·
verified ·
1 Parent(s): 8e5b357

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -106,7 +106,7 @@ with gr.Blocks(theme="soft") as demo:
106
  label="Generated Image",
107
  type="filepath",
108
  elem_id="output_image",
109
- height=1024 # Increased the height by 100%
110
  )
111
 
112
  run_button.click(
@@ -115,24 +115,24 @@ with gr.Blocks(theme="soft") as demo:
115
  outputs=[result_image],
116
  )
117
 
118
- # Footer with custom style and text
119
- gr.Markdown("""
 
120
  <style>
121
- .footer {
122
- position: relative;
123
- left: 0;
124
- bottom: 0;
125
- width: 100%;
126
- background-color: white;
127
- color: black;
128
- text-align: center;
129
- }
130
- #output_image {
131
- height: calc(100% + 512px); /* Dynamically increases height by 100% */
132
- }
133
  </style>
134
  <div class="footer">
135
- <p>Developed using the RealVisXL_V5.0_Lightning model with ❤ by Aklavya (Bucky)</p>
136
  </div>
137
  """)
138
 
 
106
  label="Generated Image",
107
  type="filepath",
108
  elem_id="output_image",
109
+ height=600 # Increased the height by 100%
110
  )
111
 
112
  run_button.click(
 
115
  outputs=[result_image],
116
  )
117
 
118
+
119
+ # Footer added to center-align the text
120
+ gr.HTML("""
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
+ padding: 10px;
131
+ margin-top: 20px;
132
+ }
 
133
  </style>
134
  <div class="footer">
135
+ <p>Developed using the RealVisXL_V5.0_Lightning model with ❤ by Aklavya (Bucky)</p>
136
  </div>
137
  """)
138