Spaces:
Running
Running
File size: 388 Bytes
630cbf4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
import modelscope_gradio_components as mgr
def fn(value):
print(value.text, value.files)
with gr.Blocks() as demo:
input = mgr.MultimodalInput(upload_button_props=dict(variant="primary"),
submit_button_props=dict(visible=False))
input.change(fn=fn, inputs=[input])
if __name__ == "__main__":
demo.queue().launch()
|