Dongxu Li commited on
Commit ·
cd2fa64
1
Parent(s): 7ca3a4a
update ui.
Browse files156 unmodified lines15715815916016016116216331 unmodified lines19519619719819819920020114 unmodified lines216217218219219220221222223224223224225226227156 unmodified lines gr.Markdown(article)
with gr.Row(): with gr.Column(): with gr.Column(scale=1): image_input = gr.Image(type="pil")
# with gr.Row():31 unmodified lines label="Repeat Penalty (larger value prevents repetition)", )
with gr.Column(): with gr.Column(scale=1.5):
with gr.Column(): caption_output = gr.Textbox(lines=1, label="Caption Output")14 unmodified lines
gr.Markdown("""Trying prompting your input for chat; e.g. example prompt for QA, \"Question: {} Answer:\"""") with gr.Row(): with gr.Column(): with gr.Column(scale=1.5): chatbot = gr.Chatbot(label="Chat Output (from FlanT5)")
# with gr.Row(): with gr.Column(): chat_input = gr.Textbox(lines=1, label="Chat Input") with gr.Column(scale=1): chat_input = gr.Textbox(lines=2, label="Chat Input")
with gr.Row(): clear_button = gr.Button(value="Clear", interactive=True)app.py+5-5