developerskyebrowse commited on
Commit
a9de8a3
·
1 Parent(s): cd05b35

lower gpu duration

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. local_app.py +20 -10
app.py CHANGED
@@ -362,7 +362,7 @@ with gr.Blocks(theme="bethecloud/storj_theme", css=css) as demo:
362
  def turn_buttons_on():
363
  return gr.update(visible=True), gr.update(visible=True)
364
 
365
- @spaces.GPU(duration=59)
366
  @torch.inference_mode()
367
  def process_image(
368
  image,
 
362
  def turn_buttons_on():
363
  return gr.update(visible=True), gr.update(visible=True)
364
 
365
+ @spaces.GPU(duration=8)
366
  @torch.inference_mode()
367
  def process_image(
368
  image,
local_app.py CHANGED
@@ -215,20 +215,30 @@ def apply_style(style_name):
215
 
216
 
217
  css = """
218
- h1 {
219
  text-align: center;
220
- display:block;
221
  }
222
- h2 {
223
- text-align: center;
224
- display:block;
225
  }
226
- h3 {
227
- text-align: center;
228
- display:block;
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  }
230
- .gradio-container{max-width: 1200px !important}
231
- footer {visibility: hidden}
232
  """
233
  with gr.Blocks(theme="bethecloud/storj_theme", css=css) as demo:
234
  #############################################################################
 
215
 
216
 
217
  css = """
218
+ h1, h2, h3 {
219
  text-align: center;
220
+ display: block;
221
  }
222
+ .gradio-container {
223
+ max-width: 1200px !important;
 
224
  }
225
+ footer {
226
+ visibility: hidden;
227
+ }
228
+ .gr-image {
229
+ display: flex;
230
+ justify-content: center;
231
+ align-items: center;
232
+ width: 100%;
233
+ height: 512px;
234
+ overflow: hidden;
235
+ }
236
+ .gr-image img {
237
+ width: 100%;
238
+ height: 100%;
239
+ object-fit: cover;
240
+ object-position: center;
241
  }
 
 
242
  """
243
  with gr.Blocks(theme="bethecloud/storj_theme", css=css) as demo:
244
  #############################################################################