yizhangliu commited on
Commit
50be328
1 Parent(s): a8af713

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -274,7 +274,6 @@ set_page_elements = """async() => {
274
 
275
  const share_btn_container = gradioEl.querySelectorAll('#share-btn-container')[0];
276
  share_btn_container.setAttribute('style', 'width: 0px; height:0px;');
277
-
278
  const share_btn_share_icon = gradioEl.querySelectorAll('#share-btn-share-icon')[0];
279
  share_btn_share_icon.setAttribute('style', 'width: 0px; height:0px;');
280
  } else {
@@ -282,6 +281,11 @@ set_page_elements = """async() => {
282
  image_upload.setAttribute('style', 'min-height: ' + max_height + 'px; overflow-x: overlay');
283
  data_image.setAttribute('style', 'height: ' + max_height + 'px');
284
  data_image_div.setAttribute('style', 'min-height: ' + max_height + 'px');
 
 
 
 
 
285
  }
286
  group1.style.display = "none";
287
  group2.style.display = "block";
@@ -386,4 +390,4 @@ with image_blocks as demo:
386
 
387
  begin_button.click(fn=None, inputs=[], outputs=[group_1, group_2], _js=set_page_elements)
388
 
389
- image_blocks.launch(server_name='0.0.0.0')
 
274
 
275
  const share_btn_container = gradioEl.querySelectorAll('#share-btn-container')[0];
276
  share_btn_container.setAttribute('style', 'width: 0px; height:0px;');
 
277
  const share_btn_share_icon = gradioEl.querySelectorAll('#share-btn-share-icon')[0];
278
  share_btn_share_icon.setAttribute('style', 'width: 0px; height:0px;');
279
  } else {
 
281
  image_upload.setAttribute('style', 'min-height: ' + max_height + 'px; overflow-x: overlay');
282
  data_image.setAttribute('style', 'height: ' + max_height + 'px');
283
  data_image_div.setAttribute('style', 'min-height: ' + max_height + 'px');
284
+
285
+ const share_btn_container = gradioEl.querySelectorAll('#share-btn-container')[0];
286
+ share_btn_container.setAttribute('style', 'width: 0px; height:0px;');
287
+ const share_btn_share_icon = gradioEl.querySelectorAll('#share-btn-share-icon')[0];
288
+ share_btn_share_icon.setAttribute('style', 'width: 0px; height:0px;');
289
  }
290
  group1.style.display = "none";
291
  group2.style.display = "block";
 
390
 
391
  begin_button.click(fn=None, inputs=[], outputs=[group_1, group_2], _js=set_page_elements)
392
 
393
+ image_blocks.launch(server_name='0.0.0.0', share=True)