该用 clipman
This commit is contained in:
parent
574618651a
commit
6cdabb5005
@ -2,7 +2,8 @@ import gradio as gr
|
|||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import pyperclip
|
import clipman
|
||||||
|
clipman.init()
|
||||||
|
|
||||||
|
|
||||||
def convert_to_wav(audio_file):
|
def convert_to_wav(audio_file):
|
||||||
@ -148,7 +149,7 @@ def power_shell_pdf_download(powershell_script):
|
|||||||
|
|
||||||
|
|
||||||
def copy_text(text):
|
def copy_text(text):
|
||||||
pyperclip.copy(text)
|
clipman.set(text)
|
||||||
return "Text copied to clipboard!"
|
return "Text copied to clipboard!"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
gradio==4.44.0
|
gradio==4.44.0
|
||||||
pyperclip~=1.9.0
|
clipman~=3.3.1
|
||||||
Loading…
x
Reference in New Issue
Block a user