yizhangliu commited on
Commit
c1a1768
1 Parent(s): 51ec104

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -260,6 +260,8 @@ set_page_elements = """async () => {
260
  image_output.setAttribute('style', 'width: ' + (group1_width - 13*2) + 'px;min-height:none;');
261
  const enhancer = gradioEl.querySelectorAll('#enhancer-checkbox')[0];
262
  enhancer.style.display = "none";
 
 
263
  } else {
264
  max_height = 800;
265
  image_upload.setAttribute('style', 'min-height: ' + max_height + 'px; overflow-x: overlay');
 
260
  image_output.setAttribute('style', 'width: ' + (group1_width - 13*2) + 'px;min-height:none;');
261
  const enhancer = gradioEl.querySelectorAll('#enhancer-checkbox')[0];
262
  enhancer.style.display = "none";
263
+ const share_btn_container = gradioEl.querySelectorAll('#share-btn-container')[0];
264
+ share_btn_container.setAttribute('style', 'width: 0px; height:0px;');
265
  } else {
266
  max_height = 800;
267
  image_upload.setAttribute('style', 'min-height: ' + max_height + 'px; overflow-x: overlay');