🚀Build and Deploy AI Apps in 5 steps -with Cohere and Databutton

Elle Neal
Databutton
7 min readMay 29, 2023

--

Effortlessly construct and launch an AI Startup Idea Generator leveraging Cohere AI and Databutton. Create, deploy, and disseminate your unique application in 5 steps!

Introduction

Welcome to a comprehensive guide that brings you a step closer to the dynamic world of AI development, introducing you to the immersive learning ecosystem of Cohere’s LLM University and the practical, user-friendly platform of Databutton. This guide aims to empower you to construct your premier AI-powered application swiftly, effortlessly, and at no cost, irrespective of your experience in Large Language Models (LLMs) or coding.

As an enthusiast who revels in the creation of AI applications, I have found Cohere and Databutton to be invaluable allies, providing the essential tools and resources for building influential, AI-driven apps.

In this article, we’ll embark on an exciting journey to create an AI-driven Startup Idea Generator. By simply inputting an industry, the system will unveil a series of intriguing names and description ideas. The final product of this hands-on tutorial is not merely a fun tool but a testament to the power and simplicity of modern AI technologies. Ready to bring your AI-driven ideas to life?

Try the demo here and get a glimpse of the marvel you’re about to create!

Introducing Cohere and Databutton

Cohere LLM University

Cohere: A revolutionary provider of natural language processing models that is reshaping the landscape of human-machine interactions. Cohere’s powerful AI tools enable large-scale content generation, summarization, and search and can be deployed across public, private, or hybrid clouds to ensure data security and exceptional support. With applications ranging from semantic text search, text summarization, generative writing, text classification, to language embedding, Cohere’s models have been pre-trained on billions of words, making them easy to use and customize, and embeddings ready to support over 100 languages. Cohere provides a free developer tier that supports developers and AI enthusiasts to build and test their ideas.

LLM University: In an exciting initiative by Cohere, LLM University (LLMU) offers a comprehensive curriculum designed to equip learners with a solid foundation in Language AI, and the skills needed to develop their own AI applications​​. From the basics to the most advanced topics in natural language processing (NLP), including generative AI, LLMU has it all.

The courses are explained clearly with practical examples rather than formulas, providing learners with hands-on exercises and opportunities to work on their own models​. With LLMU, you can embark on an exciting learning journey, immersing yourself in the vast world of NLP and Large Language Models (LLMs).

This is not just about learning — it’s about joining a vibrant community of fellow learners and NLP enthusiasts where you can share ideas and receive support​​.

Read this article for more details: Introducing LLM University — Your Go-To Learning Resource for NLP🎓 (cohere.com)

Databutton

Databutton: An AI-powered workspace, Databutton enables you to build and share data applications right in your browser. Leveraging the entire Python ecosystem, Databutton helps data professionals quickly build, iterate on, and derive impact from data applications. Join the community of people passionate about maximizing the value out of their abilities with data​.

In an era where AI and data are king, these platforms are making it easier than ever to unlock the transformative power of technology. Whether you’re a beginner looking to get started in the field, or an advanced learner aiming to perfect your skills, there’s never been a better time to dive into the world of AI and data. The future of AI-powered applications is here, and it’s exciting!

5 Awesome Features of Databutton?

(my personal favourites)

Firstly, let’s explore some of the main features of Databutton that can help you as an LLM developer to quickly design, create and deploy your own AI powered application.

  1. Familiar Streamlit Framework: Databutton Pages is built on the Streamlit framework for writing graphical interfaces in Python.

2. Free Community Tier: It is perfect for applying your newly learnt LLM skills, they offer a very generous free tier for the community.

3. Collaborate, Deploy and Share: perfect for joint projects, you can quickly add collaborators, deploy tour application and share in seconds. Perfect for hackathon events and no more Github!

Share | Collaborate | Deploy

4. đŸȘ„Databutler: In-app personal assistant driven by AI, you can discuss your code, ask to solve problems and have conversations about pretty much anything!

5. Databutlers & Community: Incredible support from the databutlers and community. They are clearly very passionate about helping people to build incredible applications and are always very open and responsive to honest feedback.

There are so many more great features such as data storage, scheduled jobs, secrets management, packages, etc. check them out here!

Building your App

  1. Create a free account with Databutton
  2. Create a free account with Cohere and get your API Key

The Cohere LLM University is packed full of examples and tutorials that will help you not only understand the core concepts but how to build your own AI driven application.

We are going to follow the Startup Idea Generator tutorial where we will create an application that assist the user in brainstorming new startup ideas using Cohere’s AI.

Range of applications to build: Application Examples (cohere.com)

Please note: I have taken this code tutorial from Startup Idea Generator (cohere.com) and will be showing you how to create this application in Databutton.

Build your Databutton Application

  1. Create a new app
  • Once you have signed up for your free Databutton account, you can create a new app in seconds by clicking on ‘New app’
  1. Add secrets and packages
  • To use the API Key in your app, copy the code snippet from the secret, this will look something like this: ‘COHERE_API_KEY = db.secrets.get(name=”COHERE_API_KEY”)’
  • Add cohere as a package and click install

3. Add entire code from the tutorial to the home page. Startup Idea Generator (cohere.com)

  • Insert this code to the top of the home page to enable Databutton, streamlit and cohere as well as calling in your cohere API Key to the Cohere client.
import databutton as db
import streamlit as st
import cohere
co = cohere.Client(db.secrets.get(name="COHERE_API_KEY"))

4. Test and run app

  • Testing the app is as simple as clicking the ‘Run Code’ button and using the interface.

5. Deploy and share!

  • Now your app is ready to deploy and share with a couple of clicks.

The code is also available in the ‘Show Code’ page, within the demo app. Simply copy and paste this into your own application.

Conclusion

Stepping into the world of AI application development may seem daunting, but with the right resources, even novices can build exciting AI apps from scratch. Cohere LLM University and Databutton provide the essential tools and learning resources you need to get started in your AI journey. From the vast knowledge base provided by LLMU, to the seamless application development environment of Databutton, these platforms are not only incredibly accessible, but also conducive to innovative thought and practical learning.

Building the Startup Idea Generator app as demonstrated in this article is just the beginning. With the skills and tools you’ve learned, you’re now equipped to build and deploy your own AI-driven apps. Whether you choose to refine this app further, or you’re inspired to design something entirely new, remember that the journey is about learning, experimenting, and improving.

Finally, don’t forget to engage with the community. The collective wisdom, feedback, and support you’ll find in both Cohere’s and Databutton’s user base can be invaluable as you navigate the exciting, challenging, and rewarding world of AI app development. Dive in, start creating, and see where your AI journey takes you!

--

--

Elle Neal
Databutton

AI & Data Science enthusiast, passionate STEM Ambassador teaching Lego robotics and coding to children and building AI apps for neurodiverse learners.