Download app.py from hysts-debug/multimodal-chat-examples: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/hysts-debug/multimodal-chat-examples/resolve/main/app.py
- Command line
-
hf download hf://spaces/hysts-debug/multimodal-chat-examples/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hysts-debug/multimodal-chat-examples/resolve/main/app.py
366 Bytes
| import gradio as gr | |
| def run(message, history): | |
| print(message) | |
| return "aaa" | |
| demo = gr.ChatInterface( | |
| fn=run, | |
| examples=[ | |
| [ | |
| { | |
| "text": "Describe the image.", | |
| "files": ["cats.jpg"], | |
| }, | |
| ], | |
| ], | |
| multimodal=True, | |
| type="messages", | |
| cache_examples=False, | |
| ) | |
| demo.launch() | |