Skip to content

Commit

Permalink
fix clipboard (#2321)
Browse files Browse the repository at this point in the history
  • Loading branch information
abidlabs authored Sep 22, 2022
1 parent 11379b9 commit 581fbab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradio/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1120,13 +1120,13 @@ def reverse(text):
time.sleep(1)
display(
HTML(
f'<div><iframe src="{self.share_url}" width="{self.width}" height="{self.height}" allow="autoplay; camera; microphone;" frameborder="0" allowfullscreen></iframe></div>'
f'<div><iframe src="{self.share_url}" width="{self.width}" height="{self.height}" allow="autoplay; camera; microphone; clipboard-read; clipboard-write;" frameborder="0" allowfullscreen></iframe></div>'
)
)
else:
display(
HTML(
f'<div><iframe src="{self.local_url}" width="{self.width}" height="{self.height}" allow="autoplay; camera; microphone;" frameborder="0" allowfullscreen></iframe></div>'
f'<div><iframe src="{self.local_url}" width="{self.width}" height="{self.height}" allow="autoplay; camera; microphone; clipboard-read; clipboard-write;" frameborder="0" allowfullscreen></iframe></div>'
)
)
except ImportError:
Expand Down

0 comments on commit 581fbab

Please sign in to comment.