Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /gradio-app_gradio /demo /chatinterface_echo_multimodal /run.py
| import gradio as gr | |
| def echo_multimodal(message, history): | |
| response = [] | |
| response.append("You wrote: '" + message["text"] + "' and uploaded:") | |
| if message.get("files"): | |
| for file in message["files"]: | |
| response.append(gr.File(value=file)) | |
| return response | |
| demo = gr.ChatInterface( | |
| echo_multimodal, | |
| multimodal=True, | |
| textbox=gr.MultimodalTextbox(file_count="multiple"), | |
| api_name="chat", | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |
Xet Storage Details
- Size:
- 482 Bytes
- Xet hash:
- af5217ccf581f2e46667bee1b9366f9a37e75e0245f7b96d06516ae10645e171
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.