'gradio.processing_utils' has no attribute 'encode_url_or_file_to_base64'

#14
by uglc - opened

Modify the following code
修改以下代码

image.png

# 导入工具包
from gradio_client import utils as client_utils

    # 使用工具包将本地生成好的音频文件转换成base64
    return client_utils.encode_url_or_file_to_base64(data["name"])

Sign up or log in to comment