Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
A set of extension component, inluding components for conversational input and display in multimodal scenarios, as well as more components for vertical scenarios.
✖️
GitHub | 🤖 ModelScope Studio | 🤗 Hugging Face Space
中文 | English | 日本語
modelscope_studio
is a set of extension component libraries based on gradio 4.x, dedicated to serving the various extension needs of gradio applications within the ModelScope Studio. It mainly focuses on enhancing conversational scenarios, supporting multimodal contexts, and providing assistance for various other specialized scenarios.
pip install modelscope_studio
import time
import gradio as gr
import modelscope_studio as mgr
def submit(_input, _chatbot):
print('text:', _input.text)
print('files: ', _input.files)
_chatbot.append([_input, None])
yield _chatbot
time.sleep(1)
_chatbot[-1][1] = [{
"flushing": False,
"text": 'bot1: ' + _input.text + '!'
}, {
"text": 'bot2: ' + _input.text + '!'
}]
yield {
chatbot: _chatbot,
}
with gr.Blocks() as demo:
chatbot = mgr.Chatbot(height=400)
input = mgr.MultimodalInput()
input.submit(fn=submit, inputs=[input, chatbot], outputs=[chatbot])
demo.queue().launch()
The currently supported components include:
For detailed usage, see Documentation and Examples
Clone this repo locally:
git clone git@github.com:modelscope/modelscope-studio.git
cd modelscope-studio
# for backend
pip install -e '.'
# for frontend
npm install pnpm -g
pnpm install
pnpm build
Run demo!
gradio docs/app.py
or run a single demo like this:
gradio docs/components/Chatbot/demos/basic.py
FAQs
A set of extension component, inluding components for conversational input and display in multimodal scenarios, as well as more components for vertical scenarios.
We found that modelscope-studio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.