text-summary / app.py
zxc12138's picture
Update app.py
429a833
raw
history blame contribute delete
No virus
354 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="请输入正文"),
],
outputs="text"
)
server.launch()