{"id":19882963,"url":"https://github.com/modelscope/modelscope-studio","last_synced_at":"2025-05-16T19:03:01.602Z","repository":{"id":220797518,"uuid":"752535493","full_name":"modelscope/modelscope-studio","owner":"modelscope","description":"A third-party component library based on Gradio.","archived":false,"fork":false,"pushed_at":"2025-05-09T11:46:43.000Z","size":16573,"stargazers_count":97,"open_issues_count":3,"forks_count":14,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-09T12:36:20.069Z","etag":null,"topics":["ant-design","ant-design-x","gradio","gradio-custom-component","modelscope","python","ui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modelscope.png","metadata":{"files":{"readme":"README-ja_JP.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-04T05:53:30.000Z","updated_at":"2025-05-02T10:28:04.000Z","dependencies_parsed_at":"2025-04-12T18:47:22.678Z","dependency_job_id":"ee839a0e-2530-4ea2-9998-776aa29cab72","html_url":"https://github.com/modelscope/modelscope-studio","commit_stats":null,"previous_names":["modelscope/modelscope-studio"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modelscope%2Fmodelscope-studio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modelscope%2Fmodelscope-studio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modelscope%2Fmodelscope-studio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modelscope%2Fmodelscope-studio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modelscope","download_url":"https://codeload.github.com/modelscope/modelscope-studio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592367,"owners_count":22097010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ant-design","ant-design-x","gradio","gradio-custom-component","modelscope","python","ui"],"created_at":"2024-11-12T17:19:02.923Z","updated_at":"2025-05-16T19:03:01.448Z","avatar_url":"https://github.com/modelscope.png","language":"Python","readme":"\u003e This document is still for version 0.x, please refer to the [English Version](./README.md) for the latest updates.\n\n\u003ch1\u003eModelScope Studio\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://modelscope.oss-cn-beijing.aliyuncs.com/modelscope.gif\" height=\"60\" style=\"vertical-align: middle;\"/\u003e\n    \u003cspan style=\"font-size: 30px; vertical-align: middle;\"\u003e\n    ✖️\n    \u003c/span\u003e\n    \u003cimg src=\"https://github.com/gradio-app/gradio/raw/main/readme_files/gradio.svg\" height=\"60\" style=\"vertical-align: middle;\"\u003e\n\u003cp\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/modelscope/modelscope-studio\"\u003eGitHub\u003c/a\u003e | 🤖 \u003ca href=\"https://modelscope.cn/studios/modelscope/modelscope-studio/summary\"\u003eModelScope Studio\u003c/a\u003e ｜ 🤗 \u003ca href=\"https://huggingface.co/spaces/modelscope/modelscope-studio\"\u003eHugging Face Space\u003c/a\u003e\n\u003cbr\u003e\n  \u003ca href=\"README-zh_CN.md\"\u003e中文\u003c/a\u003e\u0026nbsp ｜ \u0026nbsp\u003ca href=\"README.md\"\u003eEnglish\u003c/a\u003e\u0026nbsp ｜ \u0026nbsp日本語\n\u003c/p\u003e\n\n`modelscope_studio` は、gradio 4.x をベースにした拡張コンポーネントライブラリのセットで、ModelScope Studio 内の gradio アプリケーションの様々な拡張ニーズに対応するためのものになります。こちらは主に会話シナリオの強化、マルチモーダルコンテキストのサポート、その他様々な特殊シナリオの支援に重点を置いています。\n\n## インストール\n\n```sh\npip install modelscope_studio\n```\n\n## クイックスタート\n\n```python\nimport time\nimport gradio as gr\nimport modelscope_studio.components.legacy as mgr\n\ndef submit(_input, _chatbot):\n    print('text：', _input.text)\n    print('files: ', _input.files)\n    _chatbot.append([_input, None])\n    yield _chatbot\n    time.sleep(1)\n    _chatbot[-1][1] = [{\n        \"flushing\": False,\n        \"text\": 'bot1: ' + _input.text + '!'\n    }, {\n        \"text\": 'bot2: ' + _input.text + '!'\n    }]\n    yield {\n        chatbot: _chatbot,\n    }\n\nwith gr.Blocks() as demo:\n    chatbot = mgr.Chatbot(height=400)\n\n    input = mgr.MultimodalInput()\n    input.submit(fn=submit, inputs=[input, chatbot], outputs=[chatbot])\n\ndemo.queue().launch()\n```\n\n![quickstart](./resources/quickstart.png)\n\n## コンポーネントドキュメント\n\n現在サポートされているコンポーネントは以下の通りです:\n\n- Chatbot: gradio チャットボット拡張コンポーネントは、マルチモーダルコンテンツ出力、マルチボットシナリオ、会話コンテンツ内のカスタムレンダリングコンポーネントやイベントインタラクションをサポートします。\n- MultimodalInput: ファイルアップロード、録画、写真撮影などの機能をサポートするマルチモーダル入力ボックス。\n- Markdown: gradio Markdown 拡張コンポーネントは、マルチモーダルコンテンツ（オーディオ、ビデオ、音声、ファイル、テキスト）の出力をサポートします。\n- WaterfallGallery: gradio Gallery 拡張コンポーネントは、ウォーターフォール形式の画像表示をサポートします。\n- その他のコンポーネント...\n\n詳しい使い方は[ドキュメントと例](https://modelscope.cn/studios/modelscope/modelscope-studio/summary)を参照して下さい\n\n## 開発\n\nこのリポジトリをローカルにクローンする:\n\n```sh\ngit clone git@github.com:modelscope/modelscope-studio.git\ncd modelscope-studio\n# バックエンド用\npip install -e '.'\n# フロントエンド用\nnpm install pnpm -g\n\npnpm install\npnpm build\n```\n\nデモを実行!\n\n```sh\ngradio docs/app.py\n```\n\nまたは、次のような単一のデモを実行:\n\n```sh\ngradio docs/components/Chatbot/demos/basic.py\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodelscope%2Fmodelscope-studio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodelscope%2Fmodelscope-studio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodelscope%2Fmodelscope-studio/lists"}