Merge pull request #20 from GeorgLegato/19-reduce-verbosity-at-launch
fix #19 less verbose on console logpull/22/head
commit
0b78612c2a
|
|
@ -62,24 +62,19 @@ def after_component(component, **kwargs):
|
|||
suffix = component.parent.elem_id
|
||||
|
||||
if (suffix):
|
||||
print ("Panorama_Viewer: adding sendto button in parent_elem_id: "+suffix)
|
||||
view_gallery_button = gr.Button ("Pano \U0001F310", elem_id="sendto_panogallery_button_"+suffix) # 🌐
|
||||
view_cube_button = gr.Button ("Pano \U0001F9CA", elem_id="sendto_panogallery_cube_button_"+ suffix) # 🧊
|
||||
gallery_input_ondrop = gr.Textbox(visible=False, elem_id="gallery_input_ondrop_"+ suffix)
|
||||
gallery_input_ondrop.style(container=False)
|
||||
|
||||
view_gallery_button.click (None, [],None, _js="panorama_here(\""+iframesrc+"\",\"\",\""+view_gallery_button.elem_id+"\")" )
|
||||
view_cube_button.click (None, [],None, _js="panorama_here(\""+iframesrc+"\",\"cubemap\",\""+view_cube_button.elem_id+"\")" )
|
||||
|
||||
|
||||
gallery_input_ondrop = gr.Textbox(visible=False, elem_id="gallery_input_ondrop_"+ suffix)
|
||||
gallery_input_ondrop.style(container=False)
|
||||
if (gallery_input_ondrop and txt2img_gallery_component):
|
||||
gallery_input_ondrop.change(fn=dropHandleGallery, inputs=[gallery_input_ondrop], outputs=[txt2img_gallery_component])
|
||||
|
||||
|
||||
if kwargs.get("elem_id") == "txt2img_gallery":
|
||||
print ("Panorama Viewer: enable file-drag-and-drop into txt2img gallery...")
|
||||
|
||||
txt2img_gallery_component = component
|
||||
|
||||
if (gallery_input_ondrop and txt2img_gallery_component):
|
||||
gallery_input_ondrop.change(fn=dropHandleGallery, inputs=[gallery_input_ondrop], outputs=[txt2img_gallery_component])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue