Yaron Koresh commited on
Commit
8f16386
·
verified ·
1 Parent(s): 2978198

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -657,7 +657,7 @@ def add_song_cover_text(img,artist,song,h,w):
657
  return img
658
 
659
  spaces.GPU(300)
660
- def upscale_image(img,factor):
661
 
662
  global working
663
 
@@ -1351,7 +1351,7 @@ if __name__ == "__main__":
1351
  """)
1352
 
1353
  with gr.Row():
1354
- with gr.Column(scale=6):
1355
  artist = gr.Textbox(
1356
  placeholder="Top title",
1357
  value="",
@@ -1393,13 +1393,6 @@ if __name__ == "__main__":
1393
 
1394
  with gr.Column():
1395
  cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False)
1396
- up_scale_factor = gr.Slider(
1397
- label="Upscale",
1398
- minimum=2,
1399
- maximum=4,
1400
- step=1,
1401
- value=3,
1402
- )
1403
  upscale_now = gr.Button("Upscale",elem_classes="btn")
1404
 
1405
  run.click(
@@ -1409,7 +1402,7 @@ if __name__ == "__main__":
1409
  )
1410
  upscale_now.click(
1411
  fn=upscale_image,
1412
- inputs=[cover,up_scale_factor],
1413
  outputs=[cover]
1414
  )
1415
 
 
657
  return img
658
 
659
  spaces.GPU(300)
660
+ def upscale_image(img,factor=2):
661
 
662
  global working
663
 
 
1351
  """)
1352
 
1353
  with gr.Row():
1354
+ with gr.Column(scale=3):
1355
  artist = gr.Textbox(
1356
  placeholder="Top title",
1357
  value="",
 
1393
 
1394
  with gr.Column():
1395
  cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False)
 
 
 
 
 
 
 
1396
  upscale_now = gr.Button("Upscale",elem_classes="btn")
1397
 
1398
  run.click(
 
1402
  )
1403
  upscale_now.click(
1404
  fn=upscale_image,
1405
+ inputs=[cover],
1406
  outputs=[cover]
1407
  )
1408