Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
opmichael committed May 8, 2024
2 parents 2c41994 + add235e commit ca27533
Show file tree
Hide file tree
Showing 69 changed files with 14,874 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
evi-python-example/.env
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

This repository contains examples of how to use the [Hume API](https://docs.hume.ai) with different frameworks and languages.

## [Empathic Voice Interface (EVI)](https://dev.hume.ai/docs/empathic-voice-interface-evi/overview)

| Name | Language | Framework |
| ------------------------------------------------------------------- | ---------- | --------- |
| [`evi-custom-language-model`](/evi-custom-language-model/README.md) | Python | |
| [`evi-next-js-app-router`](/evi-next-js-app-router/README.md) | Typescript | Next.js |
| [`evi-next-js-pages-router`](/evi-next-js-pages-router/README.md) | Typescript | Next.js |
| [`evi-typescript-example`](/evi-typescript-example/README.md) | Typescript | |
| [`evi-python-example`](/evi-python-example/README.md) | Python | |
| [`meld`](/meld/README.md) (`evi-react-example`) | Typescript | React |

## [Expression Measurement API](https://dev.hume.ai/docs/expression-measurement-api/overview)

| Name | Models | Language | Framework |
| Name | Models | Language | Framework |
| -------------------------------------------------------------------------- | ------------------------------------- | ---------- | --------- |
| [`python-top-emotions`](/python-top-emotions/top_emotions.py) | `face` | Python | |
| [`typescript-next-api-language`](./typescript-next-api-language/README.md) | `language` | Typescript | Next.js |
| [`typescript-streaming-sandbox`](./typescript-streaming-sandbox/README.md) | `language`, `face`, `burst`, `speech` | Typescript | Next.js |
| [`visualization-example`](./visualization-example/example-notebook.ipynb) | `face` | Python | |

## [Empathic Voice Interface (EVI)](https://dev.hume.ai/docs/empathic-voice-interface-evi/overview)

| Name | Language | Framework |
| ------------------------------------------------------------------- | ---------- | ---------- |
| [`evi-typescript-example`](/evi-typescript-example/README.md) | Typescript | Vanilla JS |
| [`evi-custom-language-model`](/evi-custom-language-model/README.md) | Python | |
| [`meld`](/meld/README.md) | Typescript | React |
| [`typescript-next-api-language`](./typescript-next-api-language/README.md) | `language` | Typescript | Next.js |
| [`typescript-streaming-sandbox`](./typescript-streaming-sandbox/README.md) | `language`, `face`, `burst`, `speech` | Typescript | Next.js |
3 changes: 2 additions & 1 deletion evi-custom-language-model/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def __init__(self, *, system_prompt: str):

# Load external tools that the agent can use to enhance its responses. In this case, 'serpapi'
# is loaded, which can be used for performing web searches and fetching results to include in responses.
tools = load_tools(["serpapi"])
# tools = load_tools(["serpapi"])
tools = load_tools([])

# Pull a chat prompt template from a repository.
prompt = hub.pull("hwchase17/react-chat-json")
Expand Down
Binary file modified evi-custom-language-model/img/custom-language-model-config.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions evi-next-js-app-router/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HUME_API_KEY="<YOUR API KEY>"
HUME_CLIENT_SECRET="<YOUR CLIENT SECRET>"
3 changes: 3 additions & 0 deletions evi-next-js-app-router/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
36 changes: 36 additions & 0 deletions evi-next-js-app-router/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions evi-next-js-app-router/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhumeai%2Fhume-api-examples%2Ftree%2Fmain%2Fevi-next-js-app-router&env=HUME_API_KEY,HUME_CLIENT_SECRET)
4 changes: 4 additions & 0 deletions evi-next-js-app-router/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};

export default nextConfig;
Loading

0 comments on commit ca27533

Please sign in to comment.