gradio.py 321 B

1234567
  1. try:
  2. import gradio as gr
  3. assert gr.__version__ >= '4.0'
  4. import modelscope_studio as mgr # noqa
  5. except Exception as e:
  6. raise ImportError('The dependencies for GUI support are not installed. '
  7. 'Please install the required dependencies by running: pip install qwen-agent[gui]') from e