QwenLM / Qwen2-Audio

The official repo of Qwen2-Audio chat & pretrained large audio language model proposed by Alibaba Cloud.
1.24k stars 83 forks source link

ModelScopeMultimodalInput.__init__() got an unexpected keyword argument 'upload_button_props' #36

Open O-O1024 opened 3 months ago

O-O1024 commented 3 months ago

运行后 python demo/web_demo_audio.py 出错

Traceback (most recent call last):
  File "/root/Qwen2-Audio/demo/web_demo_audio.py", line 168, in <module>
    _launch_demo(args)
  File "/root/Qwen2-Audio/demo/web_demo_audio.py", line 124, in _launch_demo
    user_input = mgr.MultimodalInput(
  File "/root/miniconda3/lib/python3.10/site-packages/gradio/component_meta.py", line 160, in wrapper
    return fn(self, **kwargs)
TypeError: ModelScopeMultimodalInput.__init__() got an unexpected keyword argument 'upload_button_props'

pip show gradio modelscope-studio

Name: gradio
Version: 4.31.3
Summary: Python library for easily interacting with trained machine learning models
Home-page: 
Author: 
Author-email: Abubakar Abid <gradio-team@huggingface.co>, Ali Abid <gradio-team@huggingface.co>, Ali Abdalla <gradio-team@huggingface.co>, Dawood Khan <gradio-team@huggingface.co>, Ahsen Khaliq <gradio-team@huggingface.co>, Pete Allen <gradio-team@huggingface.co>, Ömer Faruk Özdemir <gradio-team@huggingface.co>, Freddy A Boulton <gradio-team@huggingface.co>, Hannah Blair <gradio-team@huggingface.co>
License: 
Location: /root/miniconda3/lib/python3.10/site-packages
Requires: aiofiles, altair, fastapi, ffmpy, gradio-client, httpx, huggingface-hub, importlib-resources, jinja2, markupsafe, matplotlib, numpy, orjson, packaging, pandas, pillow, pydantic, pydub, python-multipart, pyyaml, ruff, semantic-version, tomlkit, typer, typing-extensions, urllib3, uvicorn
Required-by: modelscope_studio
---
Name: modelscope_studio
Version: 0.4.0.9
Summary: A set of extension component, inluding components for conversational input and display in multimodal scenarios, as well as more components for vertical scenarios.
Home-page: 
Author: 
Author-email: YOUR NAME <YOUREMAIL@domain.com>
License: 
Location: /root/miniconda3/lib/python3.10/site-packages
Requires: gradio
Required-by:
O-O1024 commented 3 months ago

使用 pip install modelscope_studio==0.3.1 可以

TengfeiSong000 commented 2 months ago

为什么我安装到0.3.1版本还是不行