Code Monkey home page Code Monkey logo

cohere-test's Introduction

Cohere API Test

A quick test of the Co:here API.

The main file in this repo takes a prompt of some descriptions of exhibitions currently on at the British Library (where I'm writing this) and their titles, and seeks a response to fill out a missing title. Very basic but just wanted to have a quick play around !

Example input:

A free exhibition exploring British Chinese communities and culture.

Chinese communities have been calling the UK home for much longer than many realise. Many are able to trace their heritage to regions across East and Southeast Asia, which has led to a rich and diverse culture across the UK.

In this new free display at the British Library we reflect on this long history through photographs, manuscripts and interviews with those who have lived through it.

Meet remarkable individuals from British Chinese communities across the UK. Listen to personal accounts of merchant seamen. Get to know the local business owners who set up Europe’s first Chinatowns. Be inspired by the scientists, artists and writers breaking new ground. And uncover the challenges that British Chinese people have encountered through the centuries, and continue to face today.

Join us to celebrate the history and impact of this vibrant community, and to understand what it really means to be Chinese and British.

Real exhibition title from BL website:

British and Chinese

Output title from script:

Voices of British Chinese communities: from Chinatown to the world

This seems like a better title to me!


Run:

Clone this repository and make sure you have a .env file in the repository with the line API_KEY=[your cohere api key excluding these brackets]

python -m venv env
source env/Scripts/activate
pip install -r requirements.txt

python main.py

cohere-test's People

Contributors

jonnyroutley avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.