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