Spaces:
Build error
Build error
File size: 424 Bytes
349107e ef17e0c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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()
|