Files changed (2) hide show
  1. 1.jpg +0 -0
  2. app.py +10 -3
1.jpg ADDED
app.py CHANGED
@@ -264,6 +264,12 @@ If you have any questions, please feel free to reach me out at <b>shangchenzhou@
264
  td {
265
  padding-right: 0px !important;
266
  }
 
 
 
 
 
 
267
  </style>
268
 
269
  <table>
@@ -285,7 +291,7 @@ demo = gr.Interface(
285
  gr.Number(value=2, label="Rescaling_Factor (up to 4)"),
286
  gr.Slider(0, 1, value=0.5, step=0.01, label='Codeformer_Fidelity (0 for better quality, 1 for better identity)')
287
  ], [
288
- gr.Image(type="numpy", label="Output").style(height='auto')
289
  ],
290
  title=title,
291
  description=description,
@@ -297,9 +303,10 @@ demo = gr.Interface(
297
  ['04.jpg', True, True, True, 2, 0.1],
298
  ['05.jpg', True, True, True, 2, 0.1],
299
  ['06.png', False, True, True, 1, 0.5]
300
- ])
 
 
301
 
302
  DEBUG = os.getenv('DEBUG') == '1'
303
- demo.queue(api_open=False, concurrency_count=2, max_size=10)
304
  demo.launch(debug=DEBUG)
305
  # demo.launch(debug=DEBUG, share=True)
 
264
  td {
265
  padding-right: 0px !important;
266
  }
267
+
268
+ .gradio-container-4-37-2 .prose table, .gradio-container-4-37-2 .prose tr, .gradio-container-4-37-2 .prose td, .gradio-container-4-37-2 .prose th {
269
+ border: 0px solid #ffffff;
270
+ border-bottom: 0px solid #ffffff;
271
+ }
272
+
273
  </style>
274
 
275
  <table>
 
291
  gr.Number(value=2, label="Rescaling_Factor (up to 4)"),
292
  gr.Slider(0, 1, value=0.5, step=0.01, label='Codeformer_Fidelity (0 for better quality, 1 for better identity)')
293
  ], [
294
+ gr.Image(type="numpy", label="Output")
295
  ],
296
  title=title,
297
  description=description,
 
303
  ['04.jpg', True, True, True, 2, 0.1],
304
  ['05.jpg', True, True, True, 2, 0.1],
305
  ['06.png', False, True, True, 1, 0.5]
306
+ ],
307
+ concurrency_limit=2
308
+ )
309
 
310
  DEBUG = os.getenv('DEBUG') == '1'
 
311
  demo.launch(debug=DEBUG)
312
  # demo.launch(debug=DEBUG, share=True)