Spaces:
Runtime error
Runtime error
Tim Seufert commited on
Commit ·
74adf7b
1
Parent(s): eba68bc
update
Browse files49 unmodified lines5051525354555610 unmodified lines6768697071727374757677787980818249 unmodified linesreturn "", chat_history.append((message, f"Error: {str(e)}"))# Create Gradio interface#with gr.Blocks() as demo:chatbot = gr.Chatbot()msg = gr.Textbox()img = gr.Image(type="filepath")10 unmodified lines)with gr.Interface() as iface:iface.add_textbox("Message", lines=7, label="Message")iface.add_image("Image")iface.add_textbox("Response", lines=7, label="Response")iface.launch()fn=respond,inputs=[gr.Textbox(lines=7, label="Message"), gr.Image(label="Image")],outputs=[gr.Textbox(lines=7, label="Response")],title="SimplestMachine",description="A simple chatbot interface powered by Cohere.",allow_screenshot=True,allow_file_upload=True,theme="huggingface",49 unmodified lines5051525354555610 unmodified lines6768697071727374757677787980818283848549 unmodified linesreturn "", chat_history.append((message, f"Error: {str(e)}"))# Create Gradio interfacewith gr.ChatInterface() as demo:chatbot = gr.Chatbot()msg = gr.Textbox()img = gr.Image(type="filepath")10 unmodified lines)#with gr.Interface() as iface:#iface.add_textbox("Message", lines=7, label="Message")#iface.add_image("Image")#iface.add_textbox("Response", lines=7, label="Response")#iface.launch()#fn=respond,#inputs=[gr.Textbox(lines=7, label="Message"), gr.Image(label="Image")],#outputs=[gr.Textbox(lines=7, label="Response")],#title="SimplestMachine",#description="A simple chatbot interface powered by Cohere.",#allow_screenshot=True,#allow_file_upload=True,#theme="huggingface",
app.py+17-14