gradio-pr-bot commited on
Commit
3e11d53
·
verified ·
1 Parent(s): 48b40ff

Upload folder using huggingface_hub

Browse files
6.3.1/chatbot/shared/ButtonPanel.svelte CHANGED
@@ -40,7 +40,7 @@
40
  $: show_copy = show_copy_button && message && is_all_text(message);
41
  </script>
42
 
43
- {#if show_copy || show_retry || show_undo || show_edit || likeable || show_download_button || show_share_button}
44
  <div
45
  class="message-buttons-{position} {layout} message-buttons {avatar !==
46
  null && 'with-avatar'}"
 
40
  $: show_copy = show_copy_button && message && is_all_text(message);
41
  </script>
42
 
43
+ {#if show_copy || show_retry || show_undo || show_edit || likeable || (show_download_button && file?.url) || (show_share_button && file)}
44
  <div
45
  class="message-buttons-{position} {layout} message-buttons {avatar !==
46
  null && 'with-avatar'}"