Coloring's picture
feat: update
1969c22
raw
history blame contribute delete
385 Bytes
import gradio as gr
import modelscope_studio.components.base as ms
import modelscope_studio.components.legacy as mgr
def fn(value):
print(value.text, value.files)
with gr.Blocks() as demo, ms.Application():
input = mgr.MultimodalInput(sources=["upload", "microphone", "webcam"])
input.change(fn=fn, inputs=[input])
if __name__ == "__main__":
demo.queue().launch()