Spaces:
Runtime error
Runtime error
Download app.py from AnyIDElse/SeafoodGen: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/AnyIDElse/SeafoodGen/resolve/main/app.py
- Command line
-
hf download hf://spaces/AnyIDElse/SeafoodGen/app.py
-
curl -L -o app.py https://huggingface.co/spaces/AnyIDElse/SeafoodGen/resolve/main/app.py
423 Bytes
| import gradio as gr | |
| def generate_mutimodal(title, context, img): | |
| return f"Title:{title}\nContext:{context}\n...{img}" | |
| server = gr.Interface( | |
| fn=generate_mutimodal, | |
| inputs=[ | |
| gr.Textbox(lines=1, placeholder="请输入标题"), | |
| gr.Textbox(lines=2, placeholder="请输入正文"), | |
| gr.Image(shape=(200, 200), label="请上传图片(可选)") | |
| ], | |
| outputs="text" | |
| ) | |
| server.launch() | |